Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001085/0.001085, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0009284/0.0009284, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.9052/0.9052, allocations: 173.3 MB / 201.1 MB, free: 9.352 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.519e-05, allocations: 6.25 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01256/0.01259, allocations: 14.99 MB / 283 MB, free: 7.359 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008397/0.02098, allocations: 5.018 MB / 288 MB, free: 2.324 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002139/0.02312, allocations: 123.2 kB / 288.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002408/0.02553, allocations: 1.067 MB / 289.2 MB, free: 1.129 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1423/0.1678, allocations: 1.337 MB / 290.5 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002663/0.1705, allocations: 0.8789 MB / 291.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005164/0.1757, allocations: 3.763 MB / 295.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003721/0.1794, allocations: 1.849 MB / 297 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005959/0.1853, allocations: 2.626 MB / 299.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003936/0.1893, allocations: 1.893 MB / 301.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001556/0.1908, allocations: 478.6 kB / 302 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002481/0.1933, allocations: 0.6739 MB / 302.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001412/0.1947, allocations: 1.195 MB / 303.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003705/0.1984, allocations: 1.385 MB / 305.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005407/0.2038, allocations: 3.342 MB / 308.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2038, allocations: 4.375 kB / 308.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2038, allocations: 0 / 308.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002081/0.2041, allocations: 0 / 308.6 MB, free: 10.89 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01075/0.2148, allocations: 4.466 MB / 313.1 MB, free: 8.262 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.2149, allocations: 9.922 kB / 313.1 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002505/0.2174, allocations: 0.9796 MB / 314.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003003/0.2204, allocations: 2.119 MB / 316.2 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.2205, allocations: 234.7 kB / 316.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003934/0.2209, allocations: 310.4 kB / 316.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004081/0.225, allocations: 2.463 MB / 319.2 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.203e-05/0.2251, allocations: 3.953 kB / 319.2 MB, free: 2.895 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002649/0.2253, allocations: 133.2 kB / 319.3 MB, free: 2.766 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000158/0.2255, allocations: 146.2 kB / 319.5 MB, free: 2.621 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003774/0.2293, allocations: 1.194 MB / 320.7 MB, free: 1.426 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.2433, allocations: 10.93 MB / 331.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.2451, allocations: 1.186 MB / 332.8 MB, free: 5.262 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007124/0.2458, allocations: 491.3 kB / 333.3 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00244/0.2482, allocations: 1.719 MB / 335 MB, free: 3.059 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.2482, allocations: 50.23 kB / 335 MB, free: 3.004 MB / 282.7 MB Notification: Performance of pre-optimization done (n=108): time 2.184e-06/0.2482, allocations: 0 / 335 MB, free: 3.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=142): time 0.005887/0.2541, allocations: 3.745 MB / 338.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.2542, allocations: 68.72 kB / 338.8 MB, free: 15.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.2557, allocations: 1.538 MB / 340.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.648e-05/0.2558, allocations: 49.7 kB / 340.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008386/0.2566, allocations: 1.646 MB / 342.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003512/0.257, allocations: 0.52 MB / 342.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003693/0.2573, allocations: 353.1 kB / 342.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2574, allocations: 476.8 kB / 343.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004699/0.2579, allocations: 275.8 kB / 343.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008634/0.2588, allocations: 1.173 MB / 344.9 MB, free: 8.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.2602, allocations: 1.588 MB / 346.4 MB, free: 6.887 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.2602, allocations: 4 kB / 346.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00188/0.2621, allocations: 1.576 MB / 348 MB, free: 5.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.2621, allocations: 16.22 kB / 348 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.2621, allocations: 23.98 kB / 348.1 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000236/0.2624, allocations: 95 kB / 348.2 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009597/0.2633, allocations: 487.7 kB / 348.6 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008077/0.2641, allocations: 1.768 MB / 350.4 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006782/0.2648, allocations: 111.8 kB / 350.5 MB, free: 2.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.976e-05/0.2649, allocations: 83.98 kB / 350.6 MB, free: 2.754 MB / 298.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.0006167/0.2655, allocations: 279.4 kB / 350.9 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002346/0.2657, allocations: 242.7 kB / 351.1 MB, free: 2.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.2672, allocations: 1.103 MB / 352.2 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.2672, allocations: 15.98 kB / 352.2 MB, free: 1.121 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2672, allocations: 0 / 352.2 MB, free: 1.121 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.2672, allocations: 7.984 kB / 352.2 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004151/0.2713, allocations: 3.42 MB / 355.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.2713, allocations: 0 / 355.6 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006982/0.272, allocations: 315.5 kB / 356 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001852/0.2722, allocations: 71.27 kB / 356 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.009e-05/0.2723, allocations: 31.98 kB / 356.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006665/0.273, allocations: 1.731 MB / 357.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.273, allocations: 8 kB / 357.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.2748, allocations: 1.585 MB / 359.4 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004651/0.2753, allocations: 346.6 kB / 359.7 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.2754, allocations: 31.98 kB / 359.7 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.2759, allocations: 75.91 kB / 359.8 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.276, allocations: 100.5 kB / 359.9 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-05/0.276, allocations: 39.98 kB / 360 MB, free: 9.176 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008588/0.2769, allocations: 0.8629 MB / 360.8 MB, free: 8.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2769, allocations: 4.031 kB / 360.8 MB, free: 8.316 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001176/0.2781, allocations: 0.5312 MB / 361.4 MB, free: 7.785 MB / 314.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.0003004/0.2784, allocations: 169 kB / 361.5 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.2799, allocations: 1.216 MB / 362.7 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.2799, allocations: 4.375 kB / 362.7 MB, free: 6.449 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.2806, allocations: 0.6684 MB / 363.4 MB, free: 5.785 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.2818, allocations: 496 kB / 363.9 MB, free: 5.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005885/0.2877, allocations: 4.922 MB / 368.8 MB, free: 320 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005391/0.2882, allocations: 0.7504 MB / 369.6 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007593/0.289, allocations: 420.4 kB / 370 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.2893, allocations: 144.5 kB / 370.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of SimCode: time 9.81e-07/0.2893, allocations: 0 / 370.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of Templates: time 0.03305/0.3223, allocations: 24.41 MB / 394.5 MB, free: 7.004 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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.412773960735649]