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.001394/0.001394, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001441/0.001441, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.9281/0.9281, allocations: 177.1 MB / 205 MB, free: 5.297 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.492e-06/1.492e-06, allocations: 0 / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.425e-05/2.574e-05, allocations: 6.312 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007029/0.007055, allocations: 8.202 MB / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003337/0.01039, allocations: 2.696 MB / 283.9 MB, free: 6.434 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004347/0.01083, allocations: 31.88 kB / 283.9 MB, free: 6.402 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.01187, allocations: 0.5323 MB / 284.5 MB, free: 5.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006957/0.01256, allocations: 0.5194 MB / 285 MB, free: 5.344 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.01293, allocations: 279.5 kB / 285.3 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.01401, allocations: 1.579 MB / 286.8 MB, free: 3.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004437/0.01446, allocations: 367.3 kB / 287.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.01554, allocations: 0.8846 MB / 288.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005872/0.01613, allocations: 486.5 kB / 288.5 MB, free: 1.734 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.01627, allocations: 140 kB / 288.7 MB, free: 1.598 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002575/0.01653, allocations: 180 kB / 288.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.01667, allocations: 294.8 kB / 289.1 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003193/0.01699, allocations: 474.8 kB / 289.6 MB, free: 0.668 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1021/0.1191, allocations: 0.9414 MB / 290.6 MB, free: 18.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1191, allocations: 0 / 290.6 MB, free: 18.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1191, allocations: 0 / 290.6 MB, free: 18.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.444e-05/0.1191, allocations: 0 / 290.6 MB, free: 18.92 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.001916/0.121, allocations: 1.542 MB / 292.1 MB, free: 18.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1211, allocations: 9.547 kB / 292.1 MB, free: 18.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006499/0.1217, allocations: 280.7 kB / 292.4 MB, free: 18.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009758/0.1227, allocations: 0.6956 MB / 293.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.1227, allocations: 74.03 kB / 293.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.1229, allocations: 104.3 kB / 293.2 MB, free: 17.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.124, allocations: 0.8265 MB / 294.1 MB, free: 17.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.1241, allocations: 9.688 kB / 294.1 MB, free: 17.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.1241, allocations: 40.47 kB / 294.1 MB, free: 17.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.1242, allocations: 25.19 kB / 294.1 MB, free: 17.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007528/0.1249, allocations: 358.2 kB / 294.5 MB, free: 17.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.1285, allocations: 3.648 MB / 298.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004407/0.129, allocations: 275.2 kB / 298.4 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/0.1293, allocations: 197.3 kB / 298.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.1294, allocations: 7.859 kB / 298.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.1294, allocations: 43.33 kB / 298.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.854e-06/0.1294, allocations: 2.094 kB / 298.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.00166/0.131, allocations: 1.047 MB / 299.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/0.1311, allocations: 83.52 kB / 299.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007982/0.1319, allocations: 0.7719 MB / 300.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.1319, allocations: 36.67 kB / 300.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.1322, allocations: 0.6511 MB / 301.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.87e-05/0.1323, allocations: 168.6 kB / 301.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.1324, allocations: 140.3 kB / 301.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1326, allocations: 0.5724 MB / 302.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.1327, allocations: 84.53 kB / 302.2 MB, free: 13.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.133, allocations: 0.5224 MB / 302.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/0.1335, allocations: 0.6403 MB / 303.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1335, allocations: 2.188 kB / 303.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000771/0.1343, allocations: 0.6493 MB / 304 MB, free: 12.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.1343, allocations: 9.125 kB / 304 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.1343, allocations: 9.625 kB / 304 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.1345, allocations: 84.59 kB / 304.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.1348, allocations: 152.8 kB / 304.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.1359, allocations: 3.863 MB / 308.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.1362, allocations: 34.78 kB / 308.2 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.1362, allocations: 36.72 kB / 308.2 MB, free: 8.34 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.0001505/0.1364, allocations: 212.5 kB / 308.4 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.79e-05/0.1364, allocations: 97.84 kB / 308.5 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004217/0.1369, allocations: 376 kB / 308.9 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.1369, allocations: 4.75 kB / 308.9 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1369, allocations: 4.984 kB / 308.9 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1369, allocations: 7.344 kB / 308.9 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.138, allocations: 1.182 MB / 310.1 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.138, allocations: 2.875 kB / 310.1 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001728/0.1382, allocations: 73.97 kB / 310.1 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.1383, allocations: 66.56 kB / 310.2 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.1383, allocations: 13.47 kB / 310.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009416/0.1393, allocations: 3.847 MB / 314.1 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1393, allocations: 2.156 kB / 314.1 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005283/0.1398, allocations: 0.6626 MB / 314.7 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.1399, allocations: 117.7 kB / 314.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.14, allocations: 20.38 kB / 314.9 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.1402, allocations: 22.89 kB / 314.9 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.1403, allocations: 45.22 kB / 314.9 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.1403, allocations: 15.91 kB / 315 MB, free: 2.855 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003641/0.1406, allocations: 488 kB / 315.4 MB, free: 2.652 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1406, allocations: 0 / 315.4 MB, free: 2.652 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005/0.1411, allocations: 212.6 kB / 315.6 MB, free: 2.629 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.000161/0.1413, allocations: 118.5 kB / 315.8 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005492/0.1418, allocations: 0.6873 MB / 316.4 MB, free: 2.121 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1418, allocations: 0 / 316.4 MB, free: 2.121 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002687/0.1421, allocations: 0.4961 MB / 316.9 MB, free: 1.734 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.1427, allocations: 206.3 kB / 317.1 MB, free: 1.676 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.1444, allocations: 1.656 MB / 318.8 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.961e-05/0.1445, allocations: 172.9 kB / 319 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000196/0.1447, allocations: 101.3 kB / 319.1 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.1448, allocations: 53.66 kB / 319.1 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1448, allocations: 0 / 319.1 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of Templates: time 0.03219/0.1769, allocations: 10.98 MB / 330.1 MB, free: 6.25 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.0338846212252975]