Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001012/0.001012, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009602/0.0009602, allocations: 165.7 kB / 24.99 MB, free: 8.789 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9796/0.9796, allocations: 177.1 MB / 205.3 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 273.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.186e-05/2.329e-05, allocations: 2.312 kB / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01363/0.01365, allocations: 8.182 MB / 281.2 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003397/0.01705, allocations: 2.688 MB / 283.9 MB, free: 6.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005325/0.01758, allocations: 27.88 kB / 284 MB, free: 6.902 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.01864, allocations: 0.5363 MB / 284.5 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007227/0.01936, allocations: 0.5271 MB / 285 MB, free: 5.832 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.01976, allocations: 263.7 kB / 285.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.02089, allocations: 1.579 MB / 286.9 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004473/0.02133, allocations: 371.3 kB / 287.2 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009144/0.02225, allocations: 0.8924 MB / 288.1 MB, free: 2.707 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004745/0.02272, allocations: 482.5 kB / 288.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.02284, allocations: 140 kB / 288.7 MB, free: 2.098 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.02306, allocations: 184 kB / 288.9 MB, free: 1.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.02321, allocations: 290.9 kB / 289.2 MB, free: 1.633 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003797/0.02359, allocations: 478.8 kB / 289.7 MB, free: 1.164 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009479/0.02454, allocations: 0.9651 MB / 290.6 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.02454, allocations: 0 / 290.6 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.02454, allocations: 0 / 290.6 MB, free: 200 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.02456, allocations: 4 kB / 290.6 MB, free: 196 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.1092/0.1337, allocations: 1.531 MB / 292.2 MB, free: 29.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1338, allocations: 10.97 kB / 292.2 MB, free: 29.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005233/0.1343, allocations: 280.9 kB / 292.4 MB, free: 29.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008538/0.1352, allocations: 0.7019 MB / 293.1 MB, free: 29.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/0.1352, allocations: 73.94 kB / 293.2 MB, free: 29.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.85e-05/0.1353, allocations: 102.6 kB / 293.3 MB, free: 29.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009595/0.1363, allocations: 0.8327 MB / 294.1 MB, free: 28.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.1363, allocations: 2.172 kB / 294.1 MB, free: 28.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.049e-05/0.1363, allocations: 43.09 kB / 294.2 MB, free: 28.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.1364, allocations: 24.47 kB / 294.2 MB, free: 28.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006085/0.137, allocations: 357.6 kB / 294.6 MB, free: 28.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003026/0.14, allocations: 3.648 MB / 298.2 MB, free: 26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000411/0.1404, allocations: 280.7 kB / 298.5 MB, free: 25.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003163/0.1407, allocations: 196.5 kB / 298.7 MB, free: 25.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.1408, allocations: 10.42 kB / 298.7 MB, free: 25.85 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.1408, allocations: 40.91 kB / 298.7 MB, free: 25.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.783e-06/0.1408, allocations: 0.9688 kB / 298.7 MB, free: 25.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001436/0.1422, allocations: 1.059 MB / 299.8 MB, free: 25.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.1422, allocations: 83.06 kB / 299.9 MB, free: 25.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.1429, allocations: 0.7674 MB / 300.6 MB, free: 24.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.1429, allocations: 32.45 kB / 300.7 MB, free: 24.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.1432, allocations: 0.65 MB / 301.3 MB, free: 24.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.676e-05/0.1432, allocations: 167.2 kB / 301.5 MB, free: 24.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.1433, allocations: 140.8 kB / 301.6 MB, free: 23.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1434, allocations: 0.5682 MB / 302.2 MB, free: 23.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.1436, allocations: 85.22 kB / 302.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.1438, allocations: 0.5216 MB / 302.8 MB, free: 22.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.1443, allocations: 0.641 MB / 303.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.1443, allocations: 3.391 kB / 303.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006818/0.1449, allocations: 0.6485 MB / 304.1 MB, free: 21.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.145, allocations: 9.781 kB / 304.1 MB, free: 21.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.145, allocations: 9.844 kB / 304.1 MB, free: 21.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002059/0.1452, allocations: 77.14 kB / 304.2 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.1455, allocations: 161.4 kB / 304.3 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.1466, allocations: 3.864 MB / 308.2 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/0.1469, allocations: 30.62 kB / 308.2 MB, free: 18.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.1469, allocations: 35.92 kB / 308.3 MB, free: 18.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001656/0.1471, allocations: 206.8 kB / 308.5 MB, free: 17.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.287e-05/0.1472, allocations: 108.1 kB / 308.6 MB, free: 17.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004458/0.1476, allocations: 392.4 kB / 309 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1476, allocations: 4.125 kB / 309 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1476, allocations: 1.375 kB / 309 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1476, allocations: 1.375 kB / 309 MB, free: 17.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.1487, allocations: 1.183 MB / 310.1 MB, free: 16.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1487, allocations: 1.938 kB / 310.1 MB, free: 16.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.1489, allocations: 70.28 kB / 310.2 MB, free: 16.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001368/0.149, allocations: 70.73 kB / 310.3 MB, free: 16.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.1491, allocations: 14.06 kB / 310.3 MB, free: 16.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009513/0.15, allocations: 3.838 MB / 314.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.15, allocations: 2.219 kB / 314.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005171/0.1505, allocations: 0.6762 MB / 314.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.1507, allocations: 118.5 kB / 314.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.1507, allocations: 8 kB / 314.9 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.1509, allocations: 27.98 kB / 315 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/0.151, allocations: 39.81 kB / 315 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.151, allocations: 16.23 kB / 315 MB, free: 12.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003297/0.1513, allocations: 486.9 kB / 315.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1513, allocations: 4 kB / 315.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004795/0.1518, allocations: 208 kB / 315.7 MB, free: 11.5 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,5,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.0001597/0.152, allocations: 123.1 kB / 315.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005618/0.1525, allocations: 0.6901 MB / 316.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1525, allocations: 0.75 kB / 316.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.1528, allocations: 0.4991 MB / 317 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005761/0.1534, allocations: 201.2 kB / 317.2 MB, free: 9.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.1551, allocations: 1.636 MB / 318.8 MB, free: 8.238 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.307e-05/0.1552, allocations: 172.1 kB / 319 MB, free: 8.051 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002159/0.1555, allocations: 98.75 kB / 319.1 MB, free: 7.949 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.012e-05/0.1555, allocations: 56.33 kB / 319.2 MB, free: 7.898 MB / 266.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1555, allocations: 4 kB / 319.2 MB, free: 7.895 MB / 266.7 MB Notification: Performance of Templates: time 0.01195/0.1675, allocations: 10.35 MB / 329.5 MB, free: 13.79 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.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.1651872859802097]