Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.0009255/0.0009255, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.000953/0.000953, allocations: 144.1 kB / 24.89 MB, free: 9.164 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.9502/0.9502, allocations: 173.4 MB / 201.5 MB, free: 9.23 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.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.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.0.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 / 268.5 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.215e-05/2.359e-05, allocations: 6.25 kB / 268.5 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009944/0.009967, allocations: 7.996 MB / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00482/0.01479, allocations: 2.711 MB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004546/0.01524, allocations: 27.88 kB / 279.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.01653, allocations: 0.5401 MB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009962/0.01752, allocations: 0.5194 MB / 280.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004747/0.018, allocations: 271.6 kB / 280.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001422/0.01942, allocations: 1.567 MB / 282.1 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005727/0.01999, allocations: 387.3 kB / 282.5 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.02121, allocations: 0.8807 MB / 283.4 MB, free: 7.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000598/0.02181, allocations: 486.6 kB / 283.8 MB, free: 6.754 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.02196, allocations: 140 kB / 284 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002719/0.02224, allocations: 179.9 kB / 284.2 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.02244, allocations: 290.8 kB / 284.4 MB, free: 6.156 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004361/0.02288, allocations: 482.8 kB / 284.9 MB, free: 5.684 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.02399, allocations: 0.9379 MB / 285.8 MB, free: 4.742 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.02399, allocations: 0 / 285.8 MB, free: 4.742 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.02399, allocations: 0 / 285.8 MB, free: 4.742 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.024, allocations: 0 / 285.8 MB, free: 4.742 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001645/0.02564, allocations: 1.394 MB / 287.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.02567, allocations: 8.031 kB / 287.2 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000369/0.02604, allocations: 236.7 kB / 287.5 MB, free: 3.082 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006392/0.02668, allocations: 0.5379 MB / 288 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.02672, allocations: 78 kB / 288.1 MB, free: 2.434 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.104e-05/0.0268, allocations: 99.95 kB / 288.2 MB, free: 2.336 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006603/0.02746, allocations: 0.7731 MB / 289 MB, free: 1.512 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.02748, allocations: 4 kB / 289 MB, free: 1.508 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.02752, allocations: 36 kB / 289 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.02754, allocations: 24 kB / 289 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002782/0.02782, allocations: 249.7 kB / 289.3 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1024/0.1302, allocations: 2.954 MB / 292.2 MB, free: 26.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.1305, allocations: 242.4 kB / 292.5 MB, free: 26.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.1308, allocations: 165.9 kB / 292.6 MB, free: 26.81 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.1308, allocations: 6.922 kB / 292.6 MB, free: 26.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.1308, allocations: 44.47 kB / 292.7 MB, free: 26.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.854e-06/0.1308, allocations: 1.5 kB / 292.7 MB, free: 26.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001287/0.1321, allocations: 0.7846 MB / 293.5 MB, free: 26.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.1321, allocations: 87.34 kB / 293.5 MB, free: 26.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005035/0.1326, allocations: 0.6756 MB / 294.2 MB, free: 26.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1326, allocations: 31.77 kB / 294.2 MB, free: 26.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.1328, allocations: 0.5034 MB / 294.8 MB, free: 26.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.037e-05/0.1329, allocations: 169.3 kB / 294.9 MB, free: 25.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.133, allocations: 139 kB / 295.1 MB, free: 25.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.05e-05/0.1331, allocations: 400.4 kB / 295.4 MB, free: 25.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.1332, allocations: 60.3 kB / 295.5 MB, free: 25.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.1333, allocations: 387.3 kB / 295.9 MB, free: 25.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003193/0.1337, allocations: 0.4907 MB / 296.4 MB, free: 24.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1337, allocations: 3.188 kB / 296.4 MB, free: 24.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005351/0.1342, allocations: 497.8 kB / 296.9 MB, free: 24.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1342, allocations: 9.938 kB / 296.9 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1342, allocations: 10.03 kB / 296.9 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001602/0.1344, allocations: 69.08 kB / 296.9 MB, free: 24.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1347, allocations: 152.3 kB / 297.1 MB, free: 24.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008862/0.1356, allocations: 2.606 MB / 299.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.1358, allocations: 30.39 kB / 299.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.1358, allocations: 34.69 kB / 299.8 MB, free: 22.42 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.0001302/0.136, allocations: 161.9 kB / 299.9 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.902e-05/0.136, allocations: 61.16 kB / 300 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000307/0.1364, allocations: 289.2 kB / 300.3 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1364, allocations: 9.516 kB / 300.3 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1364, allocations: 2.062 kB / 300.3 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1364, allocations: 7.75 kB / 300.3 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008286/0.1372, allocations: 0.7774 MB / 301.1 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1372, allocations: 1.531 kB / 301.1 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.1374, allocations: 71.41 kB / 301.1 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.1375, allocations: 63.58 kB / 301.2 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.1375, allocations: 12.75 kB / 301.2 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007501/0.1382, allocations: 2.584 MB / 303.8 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.1382, allocations: 9.688 kB / 303.8 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004124/0.1387, allocations: 486.2 kB / 304.3 MB, free: 19.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.1388, allocations: 75.8 kB / 304.4 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/0.1388, allocations: 12.31 kB / 304.4 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.139, allocations: 25.8 kB / 304.4 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.191e-05/0.1391, allocations: 40.61 kB / 304.4 MB, free: 19.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.1391, allocations: 16.58 kB / 304.4 MB, free: 19.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002923/0.1394, allocations: 319.2 kB / 304.8 MB, free: 19.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1394, allocations: 0 / 304.8 MB, free: 19.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000512/0.1399, allocations: 207.4 kB / 305 MB, free: 19.21 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.00014/0.14, allocations: 109.7 kB / 305.1 MB, free: 19.14 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004651/0.1405, allocations: 0.5311 MB / 305.6 MB, free: 18.87 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.801e-05/0.1405, allocations: 11.31 kB / 305.6 MB, free: 18.87 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002412/0.1407, allocations: 374.8 kB / 306 MB, free: 18.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.1412, allocations: 209.7 kB / 306.2 MB, free: 18.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.143, allocations: 1.579 MB / 307.8 MB, free: 17.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.1431, allocations: 175.4 kB / 307.9 MB, free: 17.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002306/0.1434, allocations: 100.9 kB / 308 MB, free: 17.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.1437, allocations: 232 kB / 308.3 MB, free: 17.59 MB / 266.7 MB Notification: Performance of SimCode: time 9.61e-07/0.1437, allocations: 0 / 308.3 MB, free: 17.59 MB / 266.7 MB Notification: Performance of Templates: time 0.01258/0.1563, allocations: 11.06 MB / 319.3 MB, free: 9.93 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.907422964926809]