Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.0008152/0.0008152, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0007658/0.0007658, allocations: 161 kB / 25.45 MB, free: 9.348 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.8253/0.8253, allocations: 158.6 MB / 187.2 MB, free: 3.035 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.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 299.7 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.477e-05/1.606e-05, allocations: 2.281 kB / 299.7 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007775/0.007791, allocations: 10.5 MB / 310.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005162/0.01295, allocations: 3.145 MB / 313.4 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006691/0.01362, allocations: 43.81 kB / 313.4 MB, free: 9.152 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.01488, allocations: 0.6477 MB / 314 MB, free: 8.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001016/0.01589, allocations: 0.8178 MB / 314.9 MB, free: 7.676 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005131/0.01641, allocations: 411.4 kB / 315.3 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001613/0.01802, allocations: 2.509 MB / 317.8 MB, free: 4.754 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006735/0.01869, allocations: 0.6109 MB / 318.4 MB, free: 4.094 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001181/0.01987, allocations: 1.403 MB / 319.8 MB, free: 2.688 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006424/0.02052, allocations: 0.7126 MB / 320.5 MB, free: 1.973 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001865/0.0207, allocations: 228 kB / 320.7 MB, free: 1.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002746/0.02098, allocations: 268 kB / 321 MB, free: 1.488 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.02119, allocations: 462.2 kB / 321.4 MB, free: 1.035 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004671/0.02165, allocations: 0.7365 MB / 322.2 MB, free: 304 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001671/0.02332, allocations: 2.843 MB / 325 MB, free: 13.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.02333, allocations: 3.938 kB / 325 MB, free: 13.44 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02333, allocations: 0 / 325 MB, free: 13.44 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.101e-05/0.02336, allocations: 0 / 325 MB, free: 13.44 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002161/0.02552, allocations: 2.118 MB / 327.1 MB, free: 11.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.02555, allocations: 12.03 kB / 327.2 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004782/0.02603, allocations: 295.5 kB / 327.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.02745, allocations: 1.051 MB / 328.5 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.198e-05/0.0275, allocations: 111.5 kB / 328.6 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.02763, allocations: 164.3 kB / 328.8 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/0.0293, allocations: 1.605 MB / 330.4 MB, free: 7.926 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.02934, allocations: 11.89 kB / 330.4 MB, free: 7.914 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.434e-05/0.02943, allocations: 64 kB / 330.4 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.02945, allocations: 40 kB / 330.5 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.03069, allocations: 1.045 MB / 331.5 MB, free: 6.762 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004773/0.03547, allocations: 5.412 MB / 336.9 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008576/0.03633, allocations: 0.5695 MB / 337.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/0.03685, allocations: 422.5 kB / 337.9 MB, free: 80 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.03689, allocations: 12.66 kB / 337.9 MB, free: 68 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.03691, allocations: 43.2 kB / 338 MB, free: 16 kB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 1.713e-06/0.03691, allocations: 0 / 338 MB, free: 16 kB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.002699/0.03961, allocations: 2.146 MB / 340.1 MB, free: 13.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.03966, allocations: 111.5 kB / 340.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.04084, allocations: 1.18 MB / 341.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.04087, allocations: 37.7 kB / 341.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003735/0.04125, allocations: 0.8856 MB / 342.3 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.04138, allocations: 265.8 kB / 342.6 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.04154, allocations: 206.8 kB / 342.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.04164, allocations: 353.9 kB / 343.1 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.04198, allocations: 282.4 kB / 343.4 MB, free: 10.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005481/0.04253, allocations: 0.7927 MB / 344.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009826/0.04351, allocations: 1.088 MB / 345.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.04351, allocations: 4 kB / 345.3 MB, free: 8.148 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001324/0.04484, allocations: 1.249 MB / 346.5 MB, free: 6.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.04486, allocations: 12 kB / 346.6 MB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.04487, allocations: 16 kB / 346.6 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/0.04515, allocations: 134.5 kB / 346.7 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.04558, allocations: 259.5 kB / 347 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/0.04798, allocations: 4.244 MB / 351.2 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.04838, allocations: 60.08 kB / 351.3 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.258e-05/0.04843, allocations: 56 kB / 351.3 MB, free: 1.797 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003509/0.04878, allocations: 353.4 kB / 351.7 MB, free: 1.441 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.04888, allocations: 135.1 kB / 351.8 MB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009759/0.04986, allocations: 0.8165 MB / 352.6 MB, free: 484 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.04986, allocations: 8 kB / 352.6 MB, free: 476 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.04987, allocations: 7.938 kB / 352.6 MB, free: 468 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.04987, allocations: 3.984 kB / 352.6 MB, free: 464 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1257/0.1756, allocations: 1.955 MB / 354.6 MB, free: 58.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.1756, allocations: 3.594 kB / 354.6 MB, free: 58.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003408/0.1759, allocations: 128.3 kB / 354.7 MB, free: 58.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003101/0.1762, allocations: 134.8 kB / 354.8 MB, free: 58.89 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.1763, allocations: 21.05 kB / 354.9 MB, free: 58.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002057/0.1783, allocations: 4.393 MB / 359.3 MB, free: 54.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.1783, allocations: 4.281 kB / 359.3 MB, free: 54.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.1799, allocations: 1.277 MB / 360.5 MB, free: 54.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.1803, allocations: 194.4 kB / 360.7 MB, free: 54.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.397e-05/0.1803, allocations: 20.22 kB / 360.7 MB, free: 54.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003188/0.1807, allocations: 37.14 kB / 360.8 MB, free: 54.24 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.1808, allocations: 69.48 kB / 360.9 MB, free: 54.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.1808, allocations: 23.92 kB / 360.9 MB, free: 54.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000861/0.1817, allocations: 0.7719 MB / 361.6 MB, free: 53.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1817, allocations: 1.781 kB / 361.6 MB, free: 53.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000924/0.1826, allocations: 323.8 kB / 362 MB, free: 53.86 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000221/0.1828, allocations: 135.7 kB / 362.1 MB, free: 53.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.1841, allocations: 1.09 MB / 363.2 MB, free: 53.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1841, allocations: 1.469 kB / 363.2 MB, free: 53.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006204/0.1847, allocations: 0.6839 MB / 363.9 MB, free: 52.69 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009952/0.1857, allocations: 343.4 kB / 364.2 MB, free: 52.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/0.1893, allocations: 2.822 MB / 367 MB, free: 51.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006362/0.1899, allocations: 0.6319 MB / 367.7 MB, free: 50.89 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.1901, allocations: 90.98 kB / 367.8 MB, free: 50.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.793e-06/0.1901, allocations: 0 / 367.8 MB, free: 50.88 MB / 330.7 MB Notification: Performance of Templates: time 0.02624/0.2164, allocations: 41.21 MB / 409 MB, free: 13.3 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 7.2213101061061025]