Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.001003/0.001003, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001046/0.001046, allocations: 148.9 kB / 24.81 MB, free: 9.27 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.9641/0.9641, allocations: 173.3 MB / 201.4 MB, free: 9.234 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_Start,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_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,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_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.217e-05/1.37e-05, allocations: 2.312 kB / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006268/0.006282, allocations: 7.848 MB / 276.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003066/0.009348, allocations: 2.568 MB / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004604/0.009809, allocations: 35.88 kB / 278.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009347/0.01074, allocations: 0.5206 MB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000658/0.0114, allocations: 0.5116 MB / 279.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.01171, allocations: 255.6 kB / 280.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.01274, allocations: 1.535 MB / 281.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004149/0.01316, allocations: 375.2 kB / 282.1 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009028/0.01406, allocations: 0.8767 MB / 282.9 MB, free: 7.609 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003766/0.01443, allocations: 466.6 kB / 283.4 MB, free: 7.152 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.01455, allocations: 136 kB / 283.5 MB, free: 7.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.01475, allocations: 172 kB / 283.7 MB, free: 6.852 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.01489, allocations: 290.9 kB / 284 MB, free: 6.566 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002791/0.01517, allocations: 470.8 kB / 284.4 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007619/0.01593, allocations: 0.9223 MB / 285.3 MB, free: 5.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.01593, allocations: 0 / 285.3 MB, free: 5.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.01593, allocations: 3.938 kB / 285.4 MB, free: 5.176 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.01594, allocations: 0 / 285.4 MB, free: 5.176 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001311/0.01725, allocations: 1.515 MB / 286.9 MB, free: 3.621 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.01728, allocations: 8.031 kB / 286.9 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003822/0.01767, allocations: 276 kB / 287.1 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006122/0.01828, allocations: 0.6528 MB / 287.8 MB, free: 2.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.01832, allocations: 74 kB / 287.9 MB, free: 2.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.545e-05/0.0184, allocations: 99.95 kB / 288 MB, free: 2.492 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006653/0.01907, allocations: 0.7691 MB / 288.7 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.01909, allocations: 7.953 kB / 288.7 MB, free: 1.652 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.616e-05/0.01914, allocations: 40 kB / 288.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.01915, allocations: 24 kB / 288.8 MB, free: 1.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.01946, allocations: 281.7 kB / 289.1 MB, free: 1.316 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.106/0.1254, allocations: 3.647 MB / 292.7 MB, free: 26.47 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/0.1258, allocations: 251.6 kB / 293 MB, free: 26.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.1261, allocations: 177.9 kB / 293.1 MB, free: 26.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.1261, allocations: 8 kB / 293.2 MB, free: 26.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.1261, allocations: 41.5 kB / 293.2 MB, free: 26.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.956e-06/0.1261, allocations: 1.969 kB / 293.2 MB, free: 26.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001302/0.1274, allocations: 0.8167 MB / 294 MB, free: 26.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.522e-05/0.1274, allocations: 86.28 kB / 294.1 MB, free: 26.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005787/0.128, allocations: 0.7242 MB / 294.8 MB, free: 25.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.128, allocations: 32.3 kB / 294.9 MB, free: 25.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.1283, allocations: 0.649 MB / 295.5 MB, free: 25.51 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.418e-05/0.1284, allocations: 163.9 kB / 295.7 MB, free: 25.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1285, allocations: 141.1 kB / 295.8 MB, free: 25.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1286, allocations: 0.5744 MB / 296.4 MB, free: 24.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.1287, allocations: 69.97 kB / 296.4 MB, free: 24.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.1289, allocations: 0.5049 MB / 297 MB, free: 24.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.1293, allocations: 0.6043 MB / 297.6 MB, free: 23.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.1293, allocations: 4.141 kB / 297.6 MB, free: 23.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0006337/0.1299, allocations: 0.5986 MB / 298.2 MB, free: 23.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.13, allocations: 8.219 kB / 298.2 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.13, allocations: 12.28 kB / 298.2 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001636/0.1301, allocations: 74.73 kB / 298.3 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.1304, allocations: 155.1 kB / 298.4 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.1316, allocations: 3.81 MB / 302.2 MB, free: 20.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.1319, allocations: 35.27 kB / 302.2 MB, free: 20.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.1319, allocations: 26.09 kB / 302.3 MB, free: 20.06 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 (84): * Single equations (assignments): 82 * 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.0001627/0.1321, allocations: 204.5 kB / 302.5 MB, free: 19.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.392e-05/0.1322, allocations: 97.69 kB / 302.6 MB, free: 19.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003816/0.1325, allocations: 349 kB / 302.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1326, allocations: 6.438 kB / 302.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.1326, allocations: 1.188 kB / 302.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.1326, allocations: 1.969 kB / 302.9 MB, free: 19.77 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.1336, allocations: 1.005 MB / 303.9 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1336, allocations: 2.656 kB / 303.9 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.1338, allocations: 71.34 kB / 304 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.1339, allocations: 70.09 kB / 304.1 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.134, allocations: 12.88 kB / 304.1 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.135, allocations: 3.795 MB / 307.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.135, allocations: 3.672 kB / 307.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005435/0.1355, allocations: 0.6093 MB / 308.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.1357, allocations: 120.8 kB / 308.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.1357, allocations: 13.12 kB / 308.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.1359, allocations: 24.97 kB / 308.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.597e-05/0.136, allocations: 39.14 kB / 308.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.136, allocations: 9.031 kB / 308.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003481/0.1364, allocations: 440.1 kB / 309.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1364, allocations: 4 kB / 309.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006739/0.137, allocations: 200.2 kB / 309.3 MB, free: 15.16 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 (38): * Single equations (assignments): 36 * 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.0001748/0.1372, allocations: 124.8 kB / 309.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005684/0.1378, allocations: 0.6532 MB / 310.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1378, allocations: 0.8125 kB / 310.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.1381, allocations: 0.4895 MB / 310.6 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005983/0.1386, allocations: 202.8 kB / 310.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.1407, allocations: 1.617 MB / 312.4 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.1408, allocations: 170.7 kB / 312.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002707/0.1411, allocations: 97.03 kB / 312.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003415/0.1414, allocations: 266.9 kB / 312.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.1414, allocations: 1.406 kB / 312.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01359/0.155, allocations: 10.9 MB / 323.8 MB, free: 5.211 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_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: 2.9286528541706502]