Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009464/0.0009464, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 145.7 kB / 24.89 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9646/0.9646, allocations: 173.4 MB / 201.5 MB, free: 8.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 268.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.343e-05/1.469e-05, allocations: 2.312 kB / 268.5 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.009824/0.009839, allocations: 10.55 MB / 279.1 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005964/0.0158, allocations: 3.671 MB / 282.7 MB, free: 7.684 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009389/0.01674, allocations: 87.44 kB / 282.8 MB, free: 7.598 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001287/0.01803, allocations: 0.8227 MB / 283.7 MB, free: 6.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001577/0.01961, allocations: 0.9545 MB / 284.6 MB, free: 5.809 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006498/0.02026, allocations: 467.2 kB / 285.1 MB, free: 5.352 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002287/0.02254, allocations: 3.039 MB / 288.1 MB, free: 2.301 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001423/0.02396, allocations: 1.544 MB / 289.6 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1069/0.1309, allocations: 2.473 MB / 292.1 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.133, allocations: 1.497 MB / 293.6 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007108/0.1337, allocations: 357.8 kB / 294 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008187/0.1345, allocations: 457 kB / 294.4 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007588/0.1353, allocations: 1.057 MB / 295.5 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.1369, allocations: 1.102 MB / 296.6 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00311/0.14, allocations: 2.615 MB / 299.2 MB, free: 17.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.14, allocations: 1.062 kB / 299.2 MB, free: 17.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.14, allocations: 0 / 299.2 MB, free: 17.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000118/0.1401, allocations: 0 / 299.2 MB, free: 17.22 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004211/0.1443, allocations: 3.092 MB / 302.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.1444, allocations: 11.17 kB / 302.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007225/0.1451, allocations: 441.7 kB / 302.7 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.1467, allocations: 1.308 MB / 304 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.631e-05/0.1468, allocations: 186.6 kB / 304.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002445/0.147, allocations: 253.3 kB / 304.5 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/0.1489, allocations: 1.854 MB / 306.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.02e-05/0.149, allocations: 13.14 kB / 306.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001612/0.1492, allocations: 110.9 kB / 306.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.922e-05/0.1492, allocations: 125 kB / 306.6 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.1503, allocations: 0.7405 MB / 307.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006023/0.1563, allocations: 6.886 MB / 314.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.1569, allocations: 0.5172 MB / 314.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.1572, allocations: 271.2 kB / 315 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001404/0.1574, allocations: 56.91 kB / 315 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.1574, allocations: 43.56 kB / 315.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.765e-06/0.1574, allocations: 1.969 kB / 315.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.004658/0.162, allocations: 2.945 MB / 318 MB, free: 6.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.877e-05/0.1621, allocations: 64.41 kB / 318.1 MB, free: 6.148 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007326/0.1628, allocations: 1.172 MB / 319.2 MB, free: 5.191 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/0.1629, allocations: 45.7 kB / 319.3 MB, free: 5.141 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/0.1632, allocations: 1.097 MB / 320.4 MB, free: 4.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.1633, allocations: 449.7 kB / 320.8 MB, free: 3.691 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.1636, allocations: 278 kB / 321.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.816e-05/0.1636, allocations: 305.1 kB / 321.4 MB, free: 3.145 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.1638, allocations: 178.8 kB / 321.6 MB, free: 2.969 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/0.1642, allocations: 0.6735 MB / 322.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007213/0.1649, allocations: 1.051 MB / 323.3 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.1649, allocations: 4 kB / 323.3 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001127/0.166, allocations: 1.032 MB / 324.3 MB, free: 15.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1661, allocations: 15.19 kB / 324.3 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.1661, allocations: 24.56 kB / 324.4 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002582/0.1663, allocations: 124.6 kB / 324.5 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008528/0.1672, allocations: 376.8 kB / 324.9 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.1687, allocations: 2.427 MB / 327.3 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/0.1692, allocations: 71.92 kB / 327.4 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.419e-05/0.1693, allocations: 56 kB / 327.4 MB, free: 12.77 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003712/0.1697, allocations: 221.5 kB / 327.6 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.1699, allocations: 143.8 kB / 327.8 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.1709, allocations: 0.7664 MB / 328.5 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.1709, allocations: 12 kB / 328.5 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1709, allocations: 4 kB / 328.6 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.1709, allocations: 7.969 kB / 328.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.1736, allocations: 2.117 MB / 330.7 MB, free: 9.641 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.1736, allocations: 4 kB / 330.7 MB, free: 9.637 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006075/0.1742, allocations: 235.4 kB / 330.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002937/0.1745, allocations: 152.4 kB / 331.1 MB, free: 9.258 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-05/0.1745, allocations: 24.64 kB / 331.1 MB, free: 9.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.1756, allocations: 2.401 MB / 333.5 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1756, allocations: 4 kB / 333.5 MB, free: 6.672 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.1769, allocations: 1.104 MB / 334.6 MB, free: 5.527 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005881/0.1775, allocations: 232.5 kB / 334.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.1776, allocations: 24 kB / 334.8 MB, free: 5.281 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003804/0.178, allocations: 35.98 kB / 334.9 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.1781, allocations: 88.02 kB / 335 MB, free: 5.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/0.1782, allocations: 20.03 kB / 335 MB, free: 5.145 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000511/0.1787, allocations: 0.5797 MB / 335.6 MB, free: 4.633 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1787, allocations: 0 / 335.6 MB, free: 4.633 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009001/0.1796, allocations: 467.9 kB / 336 MB, free: 4.176 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(1,2,100.0%), (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.0002625/0.1799, allocations: 181.1 kB / 336.2 MB, free: 4.008 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.181, allocations: 0.9836 MB / 337.2 MB, free: 3.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-05/0.181, allocations: 25.94 kB / 337.2 MB, free: 3.043 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005786/0.1816, allocations: 0.5853 MB / 337.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.1827, allocations: 446.5 kB / 338.2 MB, free: 2.039 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005079/0.1878, allocations: 4.092 MB / 342.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.1883, allocations: 0.5675 MB / 342.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006385/0.1889, allocations: 251.1 kB / 343.1 MB, free: 13.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008118/0.1897, allocations: 459 kB / 343.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of SimCode: time 1.292e-06/0.1897, allocations: 0 / 343.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Templates: time 0.03458/0.2243, allocations: 24.77 MB / 368.3 MB, free: 4.328 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/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.1646564602851868]