Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.001391/0.001391, allocations: 72.08 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.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.0009704/0.0009704, allocations: 144.3 kB / 24.97 MB, free: 9.324 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.9981/0.9981, allocations: 173.4 MB / 201.5 MB, free: 9.332 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.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.405e-06/2.405e-06, allocations: 0 / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.849e-05/3.09e-05, allocations: 6.25 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.008776/0.008807, allocations: 7.911 MB / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.01265, allocations: 2.54 MB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005526/0.0132, allocations: 27.88 kB / 278.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001109/0.01431, allocations: 0.5168 MB / 279.1 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008625/0.01517, allocations: 0.5077 MB / 279.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003693/0.01554, allocations: 243.7 kB / 279.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001414/0.01696, allocations: 1.482 MB / 281.3 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004934/0.01745, allocations: 379.2 kB / 281.7 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008647/0.01831, allocations: 0.8417 MB / 282.5 MB, free: 8.191 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/0.01882, allocations: 466.6 kB / 283 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.01896, allocations: 136 kB / 283.1 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.0192, allocations: 168 kB / 283.3 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.01934, allocations: 294.8 kB / 283.6 MB, free: 7.148 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003335/0.01967, allocations: 450.9 kB / 284 MB, free: 6.707 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008989/0.02057, allocations: 0.9145 MB / 284.9 MB, free: 5.789 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.02057, allocations: 0 / 284.9 MB, free: 5.789 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.02058, allocations: 0 / 284.9 MB, free: 5.789 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.245e-05/0.0206, allocations: 0 / 284.9 MB, free: 5.789 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001604/0.0222, allocations: 1.484 MB / 286.4 MB, free: 4.266 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.02224, allocations: 12.92 kB / 286.4 MB, free: 4.254 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004367/0.02268, allocations: 252.1 kB / 286.7 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.02374, allocations: 0.6724 MB / 287.3 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/0.02378, allocations: 77.88 kB / 287.4 MB, free: 3.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.073e-05/0.02387, allocations: 96 kB / 287.5 MB, free: 3.137 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008917/0.02476, allocations: 0.7872 MB / 288.3 MB, free: 2.293 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.02479, allocations: 11.89 kB / 288.3 MB, free: 2.281 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.124e-05/0.02484, allocations: 40 kB / 288.3 MB, free: 2.242 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.02485, allocations: 24 kB / 288.4 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005695/0.02542, allocations: 347.7 kB / 288.7 MB, free: 1.879 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1065/0.1319, allocations: 3.615 MB / 292.3 MB, free: 31.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004114/0.1323, allocations: 196.6 kB / 292.5 MB, free: 31.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.1325, allocations: 87.66 kB / 292.6 MB, free: 31.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.1325, allocations: 11.95 kB / 292.6 MB, free: 31.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.1325, allocations: 36.02 kB / 292.6 MB, free: 31.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=32): time 2.995e-06/0.1325, allocations: 1.5 kB / 292.6 MB, free: 31.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001528/0.1341, allocations: 0.8268 MB / 293.5 MB, free: 30.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.1341, allocations: 81.86 kB / 293.6 MB, free: 30.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008334/0.1349, allocations: 0.7507 MB / 294.3 MB, free: 30.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1349, allocations: 32.33 kB / 294.3 MB, free: 30.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/0.1352, allocations: 0.6439 MB / 295 MB, free: 30.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.574e-05/0.1353, allocations: 139.8 kB / 295.1 MB, free: 30.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.1355, allocations: 132 kB / 295.2 MB, free: 30.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1356, allocations: 0.5736 MB / 295.8 MB, free: 29.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.1357, allocations: 73.3 kB / 295.9 MB, free: 29.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002829/0.136, allocations: 0.535 MB / 296.4 MB, free: 28.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004856/0.1365, allocations: 0.6285 MB / 297.1 MB, free: 28.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.1365, allocations: 2.562 kB / 297.1 MB, free: 28.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0008129/0.1373, allocations: 0.5733 MB / 297.6 MB, free: 27.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.1374, allocations: 9.531 kB / 297.6 MB, free: 27.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.1374, allocations: 11.45 kB / 297.6 MB, free: 27.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.1375, allocations: 36.06 kB / 297.7 MB, free: 27.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.1379, allocations: 153.2 kB / 297.8 MB, free: 27.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006399/0.1385, allocations: 1.75 MB / 299.6 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.1389, allocations: 38.59 kB / 299.6 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.1389, allocations: 32.09 kB / 299.7 MB, free: 26.15 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001814/0.1391, allocations: 204 kB / 299.9 MB, free: 25.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.923e-05/0.1392, allocations: 91.73 kB / 299.9 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003973/0.1396, allocations: 275.4 kB / 300.2 MB, free: 25.79 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1396, allocations: 3.781 kB / 300.2 MB, free: 25.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1396, allocations: 5.781 kB / 300.2 MB, free: 25.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1396, allocations: 4.531 kB / 300.2 MB, free: 25.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.1409, allocations: 1.032 MB / 301.3 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1409, allocations: 1.812 kB / 301.3 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.1412, allocations: 69.98 kB / 301.3 MB, free: 25.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.392e-05/0.1412, allocations: 28.44 kB / 301.4 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.1412, allocations: 8.891 kB / 301.4 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004793/0.1417, allocations: 1.723 MB / 303.1 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1417, allocations: 2.188 kB / 303.1 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005437/0.1423, allocations: 0.5568 MB / 303.6 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/0.1424, allocations: 111.1 kB / 303.8 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.699e-05/0.1425, allocations: 8.969 kB / 303.8 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1428, allocations: 18.44 kB / 303.8 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.1428, allocations: 35.44 kB / 303.8 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.1428, allocations: 13.62 kB / 303.8 MB, free: 22.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005179/0.1434, allocations: 468.5 kB / 304.3 MB, free: 22.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1434, allocations: 0 / 304.3 MB, free: 22.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006932/0.1441, allocations: 188.7 kB / 304.5 MB, free: 22.64 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001803/0.1442, allocations: 130.8 kB / 304.6 MB, free: 22.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006212/0.1449, allocations: 467.1 kB / 305.1 MB, free: 22.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1449, allocations: 3.469 kB / 305.1 MB, free: 22.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.1451, allocations: 271.8 kB / 305.3 MB, free: 22.08 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007774/0.1459, allocations: 189 kB / 305.5 MB, free: 22.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.1484, allocations: 1.588 MB / 307.1 MB, free: 21.05 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.1485, allocations: 162.7 kB / 307.3 MB, free: 20.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003/0.1488, allocations: 94.25 kB / 307.3 MB, free: 20.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.1489, allocations: 59.41 kB / 307.4 MB, free: 20.93 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1489, allocations: 0 / 307.4 MB, free: 20.93 MB / 266.7 MB Notification: Performance of Templates: time 0.01408/0.163, allocations: 8.994 MB / 316.4 MB, free: 14.76 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.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.1049178920220584]