Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 84.84 kB / 21.43 MB, free: 296 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 160.9 kB / 24.7 MB, free: 3.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 158.6 MB / 186.5 MB, free: 6.398 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 299 MB, free: 8.699 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.749e-05/2.936e-05, allocations: 2.281 kB / 299 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01915/0.01918, allocations: 13.2 MB / 312.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.03266, allocations: 4.871 MB / 317 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00408/0.03674, allocations: 111.2 kB / 317.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004902/0.04164, allocations: 1.06 MB / 318.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007825/0.04947, allocations: 1.285 MB / 319.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004303/0.05377, allocations: 0.8922 MB / 320.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2611/0.3149, allocations: 3.767 MB / 324.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004161/0.319, allocations: 1.806 MB / 326 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006305/0.3253, allocations: 2.593 MB / 328.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005472/0.3308, allocations: 1.718 MB / 330.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002825/0.3336, allocations: 478.1 kB / 330.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003668/0.3373, allocations: 0.6686 MB / 331.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003504/0.3408, allocations: 1.175 MB / 332.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006837/0.3477, allocations: 1.375 MB / 334 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0112/0.3589, allocations: 6.31 MB / 340.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.3589, allocations: 1.375 kB / 340.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3589, allocations: 0 / 340.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002704/0.3591, allocations: 0 / 340.3 MB, free: 12.7 MB / 302.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.0124/0.3715, allocations: 4.217 MB / 344.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3716, allocations: 11.34 kB / 344.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002747/0.3743, allocations: 0.6353 MB / 345.1 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/0.3777, allocations: 2.05 MB / 347.2 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.3779, allocations: 243.8 kB / 347.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004437/0.3783, allocations: 306.2 kB / 347.7 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006174/0.3845, allocations: 4.122 MB / 351.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.925e-05/0.3846, allocations: 3.844 kB / 351.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002741/0.3848, allocations: 133.9 kB / 352 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/0.385, allocations: 144.4 kB / 352.1 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004774/0.3897, allocations: 3.37 MB / 355.5 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02264/0.4124, allocations: 11.29 MB / 366.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003864/0.4162, allocations: 1.678 MB / 368.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001887/0.4181, allocations: 0.901 MB / 369.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005938/0.4241, allocations: 2.101 MB / 371.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/0.4241, allocations: 51.22 kB / 371.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 3.838e-06/0.4241, allocations: 0 / 371.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01496/0.4391, allocations: 5.804 MB / 377.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.944e-05/0.4392, allocations: 68.72 kB / 377.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003513/0.4427, allocations: 1.735 MB / 379.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.4428, allocations: 45.7 kB / 379.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001311/0.4442, allocations: 1.564 MB / 380.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004904/0.4446, allocations: 0.4994 MB / 381.2 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005516/0.4452, allocations: 331.4 kB / 381.5 MB, free: 8.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4453, allocations: 304.5 kB / 381.8 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.4467, allocations: 0.773 MB / 382.6 MB, free: 7.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.4486, allocations: 1.403 MB / 384 MB, free: 6.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003316/0.4519, allocations: 2.313 MB / 386.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.4519, allocations: 8 kB / 386.3 MB, free: 3.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005101/0.457, allocations: 2.467 MB / 388.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/0.457, allocations: 12 kB / 388.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.823e-05/0.4571, allocations: 20 kB / 388.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005019/0.4576, allocations: 121.6 kB / 389 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.4596, allocations: 494.7 kB / 389.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001523/0.4611, allocations: 1.279 MB / 390.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/0.4633, allocations: 111.8 kB / 390.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002257/0.4635, allocations: 83.98 kB / 390.9 MB, free: 15.01 MB / 350.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.002602/0.4661, allocations: 0.9801 MB / 391.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006519/0.4668, allocations: 194.7 kB / 392.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/0.471, allocations: 1.954 MB / 394 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.4711, allocations: 16 kB / 394 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.4711, allocations: 4 kB / 394.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.4711, allocations: 7.969 kB / 394.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009265/0.4804, allocations: 4.218 MB / 398.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/0.4804, allocations: 0 / 398.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/0.4821, allocations: 318.5 kB / 398.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003407/0.4824, allocations: 94.52 kB / 398.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.21e-05/0.4825, allocations: 32.16 kB / 398.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.4837, allocations: 1.254 MB / 400 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.4837, allocations: 4 kB / 400 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005331/0.489, allocations: 3.073 MB / 403 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/0.4903, allocations: 374.6 kB / 403.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002634/0.4906, allocations: 28 kB / 403.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009763/0.4915, allocations: 79.91 kB / 403.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.4917, allocations: 99.78 kB / 403.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.285e-05/0.4918, allocations: 36 kB / 403.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002127/0.494, allocations: 1.153 MB / 404.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.494, allocations: 0 / 404.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002204/0.4962, allocations: 0.5273 MB / 405.3 MB, free: 456 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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 Backend phase and start with SimCode phase: time 0.0004491/0.4966, allocations: 161.4 kB / 405.5 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004309/0.5009, allocations: 1.982 MB / 407.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/0.5009, allocations: 0 / 407.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001746/0.5027, allocations: 0.9546 MB / 408.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/0.5054, allocations: 460.2 kB / 408.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.5169, allocations: 5.579 MB / 414.5 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00226/0.5191, allocations: 1.705 MB / 416.2 MB, free: 5.609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001809/0.521, allocations: 0.4965 MB / 416.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005266/0.5215, allocations: 144.5 kB / 416.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5215, allocations: 3.938 kB / 416.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of Templates: time 0.05648/0.578, allocations: 24.26 MB / 441.1 MB, free: 12.73 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.553852826356888]