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.001231/0.001231, 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.00444/0.00444, allocations: 145.4 kB / 24.89 MB, free: 9.211 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.9191/0.9191, allocations: 173.4 MB / 201.5 MB, free: 9.191 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.293e-06/1.293e-06, allocations: 0 / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.824e-05/1.954e-05, allocations: 6.25 kB / 268.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008138/0.008157, allocations: 8.043 MB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004518/0.01268, allocations: 2.715 MB / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005179/0.01319, allocations: 27.88 kB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009767/0.01417, allocations: 0.5362 MB / 279.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009236/0.01509, allocations: 0.5272 MB / 280.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004793/0.01557, allocations: 267.5 kB / 280.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001485/0.01706, allocations: 1.563 MB / 282.2 MB, free: 8.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006206/0.01768, allocations: 391.2 kB / 282.6 MB, free: 7.988 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.01879, allocations: 0.8807 MB / 283.5 MB, free: 7.105 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006959/0.01949, allocations: 498.5 kB / 283.9 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.01967, allocations: 136 kB / 284.1 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003398/0.02001, allocations: 183.9 kB / 284.3 MB, free: 6.305 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.0202, allocations: 290.9 kB / 284.5 MB, free: 6.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003022/0.02051, allocations: 474.8 kB / 285 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009471/0.02145, allocations: 0.9417 MB / 285.9 MB, free: 4.609 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.02146, allocations: 0 / 285.9 MB, free: 4.609 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.02146, allocations: 0 / 285.9 MB, free: 4.609 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.02147, allocations: 0 / 285.9 MB, free: 4.609 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.001261/0.02273, allocations: 1.39 MB / 287.3 MB, free: 3.191 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.02276, allocations: 16.02 kB / 287.4 MB, free: 3.176 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003905/0.02315, allocations: 228.7 kB / 287.6 MB, free: 2.953 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005881/0.02374, allocations: 0.5379 MB / 288.1 MB, free: 2.383 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/0.02378, allocations: 74 kB / 288.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.976e-05/0.02386, allocations: 104 kB / 288.3 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006215/0.02448, allocations: 0.777 MB / 289.1 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.0245, allocations: 0 / 289.1 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.02454, allocations: 40 kB / 289.1 MB, free: 1.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.02455, allocations: 24 kB / 289.1 MB, free: 1.316 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002797/0.02483, allocations: 253.7 kB / 289.4 MB, free: 1.066 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0932/0.118, allocations: 2.948 MB / 292.3 MB, free: 26.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.1183, allocations: 244 kB / 292.6 MB, free: 26.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.1186, allocations: 168.9 kB / 292.7 MB, free: 26.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.1186, allocations: 11.39 kB / 292.7 MB, free: 26.79 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.1186, allocations: 40.78 kB / 292.8 MB, free: 26.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.063e-06/0.1186, allocations: 1.094 kB / 292.8 MB, free: 26.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001292/0.1199, allocations: 0.786 MB / 293.6 MB, free: 26.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.295e-05/0.1199, allocations: 85.92 kB / 293.6 MB, free: 26.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005327/0.1205, allocations: 0.6749 MB / 294.3 MB, free: 26.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1205, allocations: 33.2 kB / 294.4 MB, free: 26.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.1207, allocations: 0.5001 MB / 294.9 MB, free: 26.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.849e-05/0.1207, allocations: 170.3 kB / 295 MB, free: 25.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.1208, allocations: 131.7 kB / 295.2 MB, free: 25.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.883e-05/0.1209, allocations: 403.9 kB / 295.5 MB, free: 25.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.38e-05/0.121, allocations: 61.17 kB / 295.6 MB, free: 25.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.1212, allocations: 386.3 kB / 296 MB, free: 25.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/0.1215, allocations: 0.4929 MB / 296.5 MB, free: 24.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.1215, allocations: 2.188 kB / 296.5 MB, free: 24.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005259/0.122, allocations: 491.2 kB / 297 MB, free: 24.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.122, allocations: 9.719 kB / 297 MB, free: 24.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1221, allocations: 12.84 kB / 297 MB, free: 24.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.1222, allocations: 74.7 kB / 297.1 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.1225, allocations: 161.8 kB / 297.2 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009262/0.1235, allocations: 2.609 MB / 299.8 MB, free: 22.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.1237, allocations: 27.91 kB / 299.8 MB, free: 22.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.1237, allocations: 28.81 kB / 299.9 MB, free: 22.39 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.0001355/0.1239, allocations: 163.5 kB / 300 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.441e-05/0.124, allocations: 64.41 kB / 300.1 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003216/0.1243, allocations: 300.1 kB / 300.4 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1243, allocations: 5.875 kB / 300.4 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1243, allocations: 5.828 kB / 300.4 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.1243, allocations: 6.391 kB / 300.4 MB, free: 22.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008645/0.1252, allocations: 0.7715 MB / 301.2 MB, free: 21.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1252, allocations: 1.922 kB / 301.2 MB, free: 21.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.1253, allocations: 84.06 kB / 301.3 MB, free: 21.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.1255, allocations: 57.81 kB / 301.3 MB, free: 21.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.1255, allocations: 12.66 kB / 301.3 MB, free: 21.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007971/0.1263, allocations: 2.586 MB / 303.9 MB, free: 19.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1263, allocations: 5.312 kB / 303.9 MB, free: 19.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004255/0.1267, allocations: 480 kB / 304.4 MB, free: 19.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.1268, allocations: 82.8 kB / 304.5 MB, free: 19.22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.1269, allocations: 16.61 kB / 304.5 MB, free: 19.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.1271, allocations: 29.09 kB / 304.5 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/0.1271, allocations: 40.33 kB / 304.6 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1271, allocations: 11.31 kB / 304.6 MB, free: 19.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002993/0.1274, allocations: 323.6 kB / 304.9 MB, free: 19.19 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1274, allocations: 0 / 304.9 MB, free: 19.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005437/0.128, allocations: 204.6 kB / 305.1 MB, free: 19.19 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.0001454/0.1281, allocations: 114.3 kB / 305.2 MB, free: 19.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004766/0.1286, allocations: 0.5249 MB / 305.7 MB, free: 18.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.99e-05/0.1286, allocations: 11.62 kB / 305.7 MB, free: 18.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.1289, allocations: 372 kB / 306.1 MB, free: 18.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005129/0.1294, allocations: 208.2 kB / 306.3 MB, free: 18.58 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.1313, allocations: 1.586 MB / 307.9 MB, free: 17.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.1314, allocations: 180.6 kB / 308.1 MB, free: 17.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.1317, allocations: 98.62 kB / 308.2 MB, free: 17.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.132, allocations: 234 kB / 308.4 MB, free: 17.57 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.132, allocations: 0 / 308.4 MB, free: 17.57 MB / 266.7 MB Notification: Performance of Templates: time 0.01317/0.1451, allocations: 11.05 MB / 319.4 MB, free: 9.715 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 -s gbode -gbm=radauIIA3 -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.8625116208568215]