Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001782/0.001782, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 14.72 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.002196/0.002196, allocations: 161.4 kB / 24.49 MB, free: 3.461 MB / 14.72 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 1.434/1.434, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 46.98 kB / 319.4 MB, free: 3.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.121, allocations: 52.16 MB / 371.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01919/0.1402, allocations: 10.55 MB / 382.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008904/0.1491, allocations: 3.106 MB / 385.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001953/0.151, allocations: 43.81 kB / 385.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003148/0.1542, allocations: 0.6362 MB / 385.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003488/0.1577, allocations: 0.7872 MB / 386.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.1592, allocations: 399.6 kB / 387.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004808/0.164, allocations: 2.417 MB / 389.5 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001845/0.1659, allocations: 0.5993 MB / 390.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002063/0.1679, allocations: 0.9378 MB / 391.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002139/0.1701, allocations: 0.8394 MB / 391.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006658/0.1707, allocations: 228 kB / 392.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.1718, allocations: 272 kB / 392.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005965/0.1724, allocations: 462.3 kB / 392.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001446/0.1739, allocations: 0.875 MB / 393.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004549/0.1784, allocations: 2.856 MB / 396.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1784, allocations: 0 / 396.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1784, allocations: 0 / 396.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.274e-05/0.1785, allocations: 0 / 396.6 MB, free: 14.34 MB / 366.1 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.004439/0.1829, allocations: 2.133 MB / 398.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.1829, allocations: 8.922 kB / 398.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009309/0.1839, allocations: 299.4 kB / 399 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/0.1857, allocations: 1.048 MB / 400 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.63e-05/0.1858, allocations: 115.5 kB / 400.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.1861, allocations: 167.8 kB / 400.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002674/0.1887, allocations: 1.604 MB / 401.9 MB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.437e-05/0.1888, allocations: 11.95 kB / 401.9 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/0.1889, allocations: 67.98 kB / 402 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.906e-05/0.189, allocations: 39.98 kB / 402 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.1911, allocations: 1.049 MB / 403.1 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007856/0.1989, allocations: 5.416 MB / 408.5 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.2005, allocations: 0.562 MB / 409.1 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009496/0.2015, allocations: 426.5 kB / 409.5 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-05/0.2015, allocations: 8.656 kB / 409.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.812e-05/0.2016, allocations: 51.08 kB / 409.5 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.475e-06/0.2016, allocations: 0 / 409.5 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004987/0.2066, allocations: 2.146 MB / 411.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/0.2066, allocations: 111.5 kB / 411.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.2083, allocations: 1.172 MB / 413 MB, free: 13.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.649e-05/0.2083, allocations: 37.7 kB / 413 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006926/0.209, allocations: 0.8896 MB / 413.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002181/0.2092, allocations: 269.7 kB / 414.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002931/0.2095, allocations: 206.8 kB / 414.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.2097, allocations: 357.9 kB / 414.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006104/0.2103, allocations: 278.5 kB / 415 MB, free: 11.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.2113, allocations: 0.7926 MB / 415.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.213, allocations: 1.092 MB / 416.9 MB, free: 9.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.213, allocations: 4 kB / 416.9 MB, free: 9 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002498/0.2155, allocations: 1.249 MB / 418.1 MB, free: 7.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.2155, allocations: 12 kB / 418.1 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.2155, allocations: 15.94 kB / 418.2 MB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005109/0.216, allocations: 143 kB / 418.3 MB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008712/0.2169, allocations: 255.6 kB / 418.5 MB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.2211, allocations: 4.248 MB / 422.8 MB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009003/0.222, allocations: 55.94 kB / 422.8 MB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.09e-05/0.2221, allocations: 60.08 kB / 422.9 MB, free: 2.641 MB / 382.1 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.0005954/0.2227, allocations: 361.3 kB / 423.3 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.2229, allocations: 131.2 kB / 423.4 MB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.2248, allocations: 0.8204 MB / 424.2 MB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2248, allocations: 4 kB / 424.2 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2248, allocations: 8.078 kB / 424.2 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.2248, allocations: 7.969 kB / 424.2 MB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.2285, allocations: 1.957 MB / 426.2 MB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.2285, allocations: 4 kB / 426.2 MB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000592/0.2291, allocations: 131.8 kB / 426.3 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000446/0.2295, allocations: 131 kB / 426.4 MB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.451e-05/0.2296, allocations: 20 kB / 426.5 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004406/0.234, allocations: 4.396 MB / 430.9 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.234, allocations: 11.94 kB / 430.9 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002501/0.2365, allocations: 1.289 MB / 432.2 MB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000476/0.2369, allocations: 191.1 kB / 432.3 MB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/0.2371, allocations: 23.98 kB / 432.4 MB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006051/0.2377, allocations: 35.97 kB / 432.4 MB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.2378, allocations: 68.27 kB / 432.5 MB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.125e-05/0.2379, allocations: 24 kB / 432.5 MB, free: 8.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.239, allocations: 0.7685 MB / 433.3 MB, free: 7.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.239, allocations: 0 / 433.3 MB, free: 7.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001199/0.2402, allocations: 328 kB / 433.6 MB, free: 7.449 MB / 398.1 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.0002174/0.2404, allocations: 135 kB / 433.7 MB, free: 7.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.2424, allocations: 1.085 MB / 434.8 MB, free: 6.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2424, allocations: 4 kB / 434.8 MB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.2434, allocations: 0.691 MB / 435.5 MB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.245, allocations: 343.7 kB / 435.8 MB, free: 5.121 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005409/0.2504, allocations: 2.934 MB / 438.8 MB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007381/0.2511, allocations: 0.6298 MB / 439.4 MB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006289/0.2518, allocations: 162.8 kB / 439.6 MB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.252, allocations: 88.48 kB / 439.6 MB, free: 1.191 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.252, allocations: 0 / 439.6 MB, free: 1.191 MB / 398.1 MB Notification: Performance of Templates: time 0.03274/0.2847, allocations: 17.35 MB / 457 MB, free: 100 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 5.259421146009117]