Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001288, allocations: 114.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001908/0.001908, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 55.91 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2179, allocations: 50.55 MB / 410 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01665/0.2346, allocations: 15.8 MB / 425.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008886/0.2435, allocations: 5.343 MB / 431.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.2452, allocations: 99.62 kB / 431.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002251/0.2474, allocations: 1.087 MB / 432.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0026/0.2501, allocations: 1.239 MB / 433.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001723/0.2518, allocations: 0.9156 MB / 434.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003217/0.2551, allocations: 3.643 MB / 438.1 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003363/0.2584, allocations: 3.314 MB / 441.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001838/0.2603, allocations: 1.744 MB / 443.1 MB, free: 200 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.2626, allocations: 2.129 MB / 445.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005626/0.2632, allocations: 480 kB / 445.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.2643, allocations: 0.6911 MB / 446.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009401/0.2653, allocations: 1.153 MB / 447.6 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001767/0.267, allocations: 2.046 MB / 449.6 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005355/0.2724, allocations: 6.305 MB / 455.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2724, allocations: 0 / 455.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2724, allocations: 0 / 455.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.909e-05/0.2725, allocations: 0 / 455.9 MB, free: 3.363 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008815/0.2813, allocations: 4.277 MB / 460.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.2814, allocations: 12.03 kB / 460.2 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002869/0.2843, allocations: 0.6172 MB / 460.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004226/0.2885, allocations: 2.296 MB / 463.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/0.2887, allocations: 234.7 kB / 463.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004955/0.2892, allocations: 316.1 kB / 463.7 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006561/0.2958, allocations: 4.047 MB / 467.7 MB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.691e-05/0.2959, allocations: 7.906 kB / 467.7 MB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/0.2962, allocations: 132 kB / 467.9 MB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/0.2963, allocations: 146.2 kB / 468 MB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005385/0.3017, allocations: 3.386 MB / 471.4 MB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01734/0.3191, allocations: 13.34 MB / 484.7 MB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004148/0.3232, allocations: 4.27 MB / 489 MB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.3248, allocations: 1.012 MB / 490 MB, free: 56 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004345/0.3292, allocations: 2.851 MB / 492.9 MB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.3292, allocations: 47.5 kB / 492.9 MB, free: 13.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.614e-06/0.3292, allocations: 0 / 492.9 MB, free: 13.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01089/0.3401, allocations: 5.999 MB / 498.9 MB, free: 6.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.3402, allocations: 68.7 kB / 499 MB, free: 6.848 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002544/0.3427, allocations: 1.902 MB / 0.4891 GB, free: 4.902 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.695e-05/0.3428, allocations: 53.7 kB / 0.4892 GB, free: 4.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009883/0.3438, allocations: 1.512 MB / 0.4907 GB, free: 3.312 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003811/0.3442, allocations: 492.9 kB / 0.4911 GB, free: 2.824 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004831/0.3447, allocations: 327.3 kB / 0.4914 GB, free: 2.496 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.3448, allocations: 313.1 kB / 0.4917 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.346, allocations: 0.7691 MB / 0.4925 GB, free: 1.418 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.3476, allocations: 1.371 MB / 0.4938 GB, free: 15.78 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002962/0.3506, allocations: 2.316 MB / 0.4961 GB, free: 13.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.3506, allocations: 4 kB / 0.4961 GB, free: 13.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003826/0.3544, allocations: 2.481 MB / 0.4985 GB, free: 10.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.3545, allocations: 16 kB / 0.4985 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/0.3545, allocations: 16 kB / 0.4985 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003328/0.3548, allocations: 122.5 kB / 0.4987 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/0.3566, allocations: 487.6 kB / 0.4991 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.3577, allocations: 1.41 MB / 0.5005 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.3589, allocations: 119.7 kB / 0.5006 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.3591, allocations: 80 kB / 0.5007 GB, free: 8.309 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001339/0.3604, allocations: 0.989 MB / 0.5017 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003046/0.3607, allocations: 205.5 kB / 0.5019 GB, free: 7.105 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.3639, allocations: 1.962 MB / 0.5038 GB, free: 5.125 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.364, allocations: 7.969 kB / 0.5038 GB, free: 5.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.364, allocations: 0 / 0.5038 GB, free: 5.117 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008021/0.3648, allocations: 450.5 kB / 0.5042 GB, free: 4.656 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002343/0.365, allocations: 27.98 kB / 0.5042 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009236/0.3659, allocations: 83.91 kB / 0.5043 GB, free: 4.547 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.3661, allocations: 77.19 kB / 0.5044 GB, free: 4.473 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003712/0.3698, allocations: 1.96 MB / 0.5063 GB, free: 2.496 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00406/0.3739, allocations: 3.026 MB / 0.5093 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001073/0.375, allocations: 0.8067 MB / 0.51 GB, free: 14.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001813/0.3768, allocations: 1.294 MB / 0.5113 GB, free: 13.32 MB / 446.1 MB Notification: Performance of Backend: time 7.32e-07/0.3768, allocations: 0 / 0.5113 GB, free: 13.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00302/0.3799, allocations: 1.734 MB / 0.513 GB, free: 11.53 MB / 446.1 MB Notification: Performance of SimCode: time 0.008631/0.3885, allocations: 5.696 MB / 0.5186 GB, free: 5.785 MB / 446.1 MB Notification: Performance of Templates: time 0.226/0.6145, allocations: 32.84 MB / 0.5506 GB, free: 117.6 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches