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.001025/0.001025, allocations: 79.75 kB / 22.46 MB, free: 2.09 MB / 18.57 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.001108/0.001108, allocations: 164.9 kB / 25.75 MB, free: 8.516 MB / 18.57 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 0.9265/0.9265, allocations: 158.6 MB / 187.5 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 251.1 MB, free: 7.777 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.211e-05, allocations: 2.312 kB / 251.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0137/0.01373, allocations: 14.8 MB / 265.9 MB, free: 8.902 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008079/0.02181, allocations: 5.042 MB / 271 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001833/0.02364, allocations: 111.2 kB / 271.1 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002052/0.02569, allocations: 1.06 MB / 272.1 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002774/0.02846, allocations: 1.281 MB / 273.4 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.03004, allocations: 0.9078 MB / 274.3 MB, free: 480 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0035/0.03354, allocations: 3.774 MB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002059/0.0356, allocations: 1.81 MB / 279.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002866/0.03846, allocations: 2.612 MB / 282.5 MB, free: 8.176 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002432/0.0409, allocations: 1.89 MB / 284.4 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007591/0.04166, allocations: 476 kB / 284.9 MB, free: 5.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009385/0.04259, allocations: 0.6676 MB / 285.5 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007034/0.0433, allocations: 1.188 MB / 286.7 MB, free: 3.957 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.04453, allocations: 1.391 MB / 288.1 MB, free: 2.562 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003206/0.04773, allocations: 3.333 MB / 291.5 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.04774, allocations: 3.938 kB / 291.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.04774, allocations: 0 / 291.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.003e-05/0.04779, allocations: 0 / 291.5 MB, free: 15.21 MB / 282.7 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.005615/0.0534, allocations: 4.457 MB / 295.9 MB, free: 10.69 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.05344, allocations: 11.98 kB / 295.9 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00207/0.05551, allocations: 0.9899 MB / 296.9 MB, free: 9.684 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.05781, allocations: 1.951 MB / 298.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.05794, allocations: 242.6 kB / 299.1 MB, free: 7.445 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000306/0.05824, allocations: 312.3 kB / 299.4 MB, free: 7.141 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003674/0.06192, allocations: 2.451 MB / 301.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.757e-05/0.06198, allocations: 7.891 kB / 301.9 MB, free: 4.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001931/0.06217, allocations: 135.9 kB / 302 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.06228, allocations: 146.2 kB / 302.2 MB, free: 4.312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00238/0.06466, allocations: 1.196 MB / 303.3 MB, free: 3.105 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01095/0.07561, allocations: 10.95 MB / 314.3 MB, free: 7.742 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.07731, allocations: 1.167 MB / 315.5 MB, free: 6.613 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006978/0.07801, allocations: 499 kB / 316 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002218/0.08023, allocations: 1.723 MB / 317.7 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.08026, allocations: 50.39 kB / 317.7 MB, free: 4.316 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 1.944e-06/0.08026, allocations: 4 kB / 317.7 MB, free: 4.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.005767/0.08603, allocations: 3.766 MB / 321.5 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.08606, allocations: 68.72 kB / 321.6 MB, free: 428 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.08753, allocations: 1.53 MB / 323.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.569e-05/0.08759, allocations: 49.7 kB / 323.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000777/0.08837, allocations: 1.645 MB / 324.8 MB, free: 13.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/0.08867, allocations: 0.5191 MB / 325.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003458/0.08901, allocations: 349.1 kB / 325.6 MB, free: 12.28 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.08913, allocations: 484.7 kB / 326.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004958/0.08962, allocations: 279.8 kB / 326.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008852/0.09051, allocations: 1.179 MB / 327.6 MB, free: 9.977 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.09198, allocations: 1.584 MB / 329.2 MB, free: 8.023 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.09199, allocations: 4 kB / 329.2 MB, free: 8.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001971/0.09396, allocations: 1.577 MB / 330.7 MB, free: 6.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.09398, allocations: 12 kB / 330.7 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.094, allocations: 20 kB / 330.8 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002176/0.09422, allocations: 102.9 kB / 330.9 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.09523, allocations: 487.7 kB / 331.3 MB, free: 5.801 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007892/0.09602, allocations: 1.767 MB / 333.1 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007126/0.09673, allocations: 116 kB / 333.2 MB, free: 3.801 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.662e-05/0.09682, allocations: 79.98 kB / 333.3 MB, free: 3.723 MB / 314.7 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.0006354/0.09745, allocations: 279.9 kB / 333.6 MB, free: 3.438 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002406/0.09769, allocations: 242.7 kB / 333.8 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.09922, allocations: 1.098 MB / 334.9 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.09922, allocations: 12 kB / 334.9 MB, free: 2.066 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.09923, allocations: 0 / 334.9 MB, free: 2.066 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.09924, allocations: 7.969 kB / 334.9 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00476/0.104, allocations: 3.426 MB / 338.4 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.104, allocations: 3.984 kB / 338.4 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.1052, allocations: 315.8 kB / 338.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002584/0.1055, allocations: 70.95 kB / 338.7 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.305e-05/0.1056, allocations: 31.98 kB / 338.8 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009839/0.1066, allocations: 1.751 MB / 340.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1066, allocations: 0 / 340.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003266/0.1098, allocations: 1.581 MB / 342.1 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009041/0.1107, allocations: 358.6 kB / 342.4 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.111, allocations: 24 kB / 342.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007924/0.1117, allocations: 83.84 kB / 342.6 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.1119, allocations: 85.23 kB / 342.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.866e-05/0.112, allocations: 47.98 kB / 342.7 MB, free: 9.988 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001492/0.1135, allocations: 0.8588 MB / 343.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1135, allocations: 0 / 343.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002221/0.1158, allocations: 0.5273 MB / 344.1 MB, free: 8.609 MB / 330.7 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.0004356/0.1162, allocations: 166.9 kB / 344.2 MB, free: 8.438 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.1188, allocations: 1.224 MB / 345.5 MB, free: 7.191 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1188, allocations: 4.062 kB / 345.5 MB, free: 7.188 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.12, allocations: 0.6666 MB / 346.1 MB, free: 6.492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.1219, allocations: 493 kB / 346.6 MB, free: 6.023 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009673/0.1316, allocations: 4.907 MB / 351.5 MB, free: 1.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008074/0.1324, allocations: 0.7502 MB / 352.3 MB, free: 252 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.108/0.2404, allocations: 415.5 kB / 352.7 MB, free: 82.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005998/0.241, allocations: 144.3 kB / 352.8 MB, free: 82.47 MB / 330.7 MB Notification: Performance of SimCode: time 2.264e-06/0.241, allocations: 0 / 352.8 MB, free: 82.47 MB / 330.7 MB Notification: Performance of Templates: time 0.03003/0.271, allocations: 24.38 MB / 377.2 MB, free: 69.51 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4599442640319467]