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.001596/0.001596, allocations: 107.6 kB / 21.18 MB, free: 452 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.001842/0.001842, allocations: 215 kB / 24.47 MB, free: 3.777 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.507/1.507, allocations: 207.7 MB / 235.3 MB, free: 9.785 MB / 190.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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 60.3 kB / 347.7 MB, free: 9.348 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2799, allocations: 49.15 MB / 396.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01495/0.2949, allocations: 13.2 MB / 410.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01272/0.3076, allocations: 4.869 MB / 414.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004454/0.3121, allocations: 111.1 kB / 415 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004368/0.3164, allocations: 1.054 MB / 416.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005805/0.3222, allocations: 1.25 MB / 417.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003033/0.3253, allocations: 0.895 MB / 418.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006307/0.3316, allocations: 3.62 MB / 421.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003243/0.3348, allocations: 1.799 MB / 423.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00351/0.3383, allocations: 1.77 MB / 425.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004184/0.3425, allocations: 1.942 MB / 427.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009987/0.3435, allocations: 476 kB / 427.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.3455, allocations: 0.6638 MB / 428.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.3468, allocations: 1.149 MB / 429.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002898/0.3497, allocations: 1.618 MB / 431.3 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008123/0.3578, allocations: 6.297 MB / 437.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3578, allocations: 4 kB / 437.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3578, allocations: 0 / 437.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001539/0.358, allocations: 0 / 437.6 MB, free: 10.3 MB / 350.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.01094/0.3689, allocations: 4.244 MB / 441.8 MB, free: 6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.369, allocations: 8.031 kB / 441.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002904/0.3719, allocations: 0.6349 MB / 442.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00481/0.3767, allocations: 2.046 MB / 444.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/0.3769, allocations: 242.7 kB / 444.7 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005743/0.3775, allocations: 316.1 kB / 445 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007903/0.3854, allocations: 4.114 MB / 449.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-05/0.3855, allocations: 3.984 kB / 449.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003038/0.3858, allocations: 135.8 kB / 449.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001769/0.3859, allocations: 146.2 kB / 449.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006463/0.3924, allocations: 3.37 MB / 452.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02185/0.4143, allocations: 11.28 MB / 464.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003599/0.4179, allocations: 1.677 MB / 465.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/0.4196, allocations: 0.8986 MB / 466.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004757/0.4243, allocations: 2.094 MB / 468.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.455e-05/0.4244, allocations: 51.5 kB / 468.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.126e-06/0.4244, allocations: 0 / 468.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01251/0.4369, allocations: 5.812 MB / 474.6 MB, free: 4.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.437, allocations: 64.72 kB / 474.7 MB, free: 4.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.4398, allocations: 1.727 MB / 476.4 MB, free: 2.809 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.4399, allocations: 53.7 kB / 476.5 MB, free: 2.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.4412, allocations: 1.563 MB / 478 MB, free: 1.172 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004925/0.4417, allocations: 0.5075 MB / 478.5 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005565/0.4422, allocations: 331.4 kB / 478.9 MB, free: 336 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4424, allocations: 301.1 kB / 479.2 MB, free: 32 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.4437, allocations: 0.7731 MB / 479.9 MB, free: 15.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.4456, allocations: 1.396 MB / 481.3 MB, free: 13.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003405/0.449, allocations: 2.32 MB / 483.6 MB, free: 10.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.4491, allocations: 8 kB / 483.7 MB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00444/0.4535, allocations: 2.471 MB / 486.1 MB, free: 8.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.4535, allocations: 12 kB / 486.1 MB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/0.4536, allocations: 20 kB / 486.2 MB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004073/0.454, allocations: 119 kB / 486.3 MB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.4558, allocations: 499.1 kB / 486.8 MB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.457, allocations: 1.279 MB / 488 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.4584, allocations: 112 kB / 488.1 MB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/0.4586, allocations: 87.98 kB / 488.2 MB, free: 6.273 MB / 398.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.001766/0.4603, allocations: 0.9812 MB / 489.2 MB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003778/0.4607, allocations: 198.7 kB / 489.4 MB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0035/0.4642, allocations: 1.944 MB / 491.4 MB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.4642, allocations: 15.94 kB / 491.4 MB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4642, allocations: 4 kB / 491.4 MB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.4642, allocations: 11.91 kB / 491.4 MB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007756/0.472, allocations: 4.211 MB / 495.6 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.472, allocations: 3.984 kB / 495.6 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/0.4734, allocations: 327.8 kB / 495.9 MB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003161/0.4738, allocations: 94.47 kB / 496 MB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.893e-05/0.4739, allocations: 27.98 kB / 496 MB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.475, allocations: 1.248 MB / 497.3 MB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.475, allocations: 7.938 kB / 497.3 MB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005198/0.4802, allocations: 3.071 MB / 0.4886 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.4814, allocations: 382.4 kB / 0.489 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/0.4816, allocations: 24 kB / 0.489 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009815/0.4826, allocations: 84.06 kB / 0.4891 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.4828, allocations: 93.08 kB / 0.4892 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.563e-05/0.4829, allocations: 39.98 kB / 0.4892 GB, free: 9.254 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001917/0.4848, allocations: 1.148 MB / 0.4904 GB, free: 8.113 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4848, allocations: 0 / 0.4904 GB, free: 8.113 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001852/0.4867, allocations: 0.5273 MB / 0.4909 GB, free: 7.586 MB / 414.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.0003774/0.487, allocations: 159 kB / 0.491 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003792/0.4908, allocations: 1.991 MB / 0.493 GB, free: 5.418 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.4908, allocations: 0 / 0.493 GB, free: 5.418 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001745/0.4926, allocations: 0.9538 MB / 0.4939 GB, free: 4.449 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.4951, allocations: 457.3 kB / 0.4943 GB, free: 4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/0.5064, allocations: 5.671 MB / 0.4999 GB, free: 14.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002211/0.5086, allocations: 1.701 MB / 0.5015 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001773/0.5103, allocations: 0.4926 MB / 0.502 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004546/0.5108, allocations: 147.4 kB / 0.5022 GB, free: 11.89 MB / 430.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5108, allocations: 0 / 0.5022 GB, free: 11.89 MB / 430.1 MB Notification: Performance of Templates: time 0.05551/0.5663, allocations: 28.07 MB / 0.5296 GB, free: 15.74 MB / 462.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.7731844410300255]