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.0009587/0.0009587, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0008989/0.0008989, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.9146/0.9146, allocations: 173.4 MB / 201.1 MB, free: 9.316 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.352e-06/1.352e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.333e-05/1.468e-05, allocations: 2.312 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006452/0.006467, allocations: 8.179 MB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003226/0.009693, allocations: 2.649 MB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004521/0.01015, allocations: 27.88 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009869/0.01113, allocations: 0.5363 MB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007725/0.0119, allocations: 0.5233 MB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.01227, allocations: 259.6 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.01332, allocations: 1.567 MB / 281.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004259/0.01375, allocations: 375.3 kB / 282.1 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.01497, allocations: 0.8845 MB / 283 MB, free: 7.328 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005465/0.01552, allocations: 482.6 kB / 283.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.01566, allocations: 140 kB / 283.6 MB, free: 6.719 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.0159, allocations: 175.9 kB / 283.8 MB, free: 6.547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.01604, allocations: 290.8 kB / 284.1 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003312/0.01637, allocations: 470.8 kB / 284.5 MB, free: 5.801 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.01739, allocations: 0.9457 MB / 285.5 MB, free: 4.852 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.0174, allocations: 4 kB / 285.5 MB, free: 4.848 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.0174, allocations: 0 / 285.5 MB, free: 4.848 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.01742, allocations: 0 / 285.5 MB, free: 4.848 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.001559/0.01898, allocations: 1.538 MB / 287 MB, free: 3.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.01901, allocations: 8.031 kB / 287 MB, free: 3.262 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004328/0.01945, allocations: 272 kB / 287.3 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007575/0.02021, allocations: 0.6926 MB / 288 MB, free: 2.273 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.02025, allocations: 74 kB / 288 MB, free: 2.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.31e-05/0.02034, allocations: 99.95 kB / 288.1 MB, free: 2.102 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000937/0.02128, allocations: 0.8356 MB / 289 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.0213, allocations: 8 kB / 289 MB, free: 1.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.396e-05/0.02136, allocations: 43.98 kB / 289 MB, free: 1.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.02138, allocations: 24 kB / 289.1 MB, free: 1.133 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005585/0.02194, allocations: 355.6 kB / 289.4 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1033/0.1252, allocations: 3.637 MB / 293 MB, free: 26.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.1256, allocations: 285.1 kB / 293.3 MB, free: 26.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.1259, allocations: 201.4 kB / 293.5 MB, free: 26.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.1259, allocations: 7.516 kB / 293.5 MB, free: 26.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.1259, allocations: 39.86 kB / 293.6 MB, free: 26.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.515e-06/0.1259, allocations: 1.078 kB / 293.6 MB, free: 26.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001421/0.1274, allocations: 1.056 MB / 294.6 MB, free: 26.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.524e-05/0.1274, allocations: 83.11 kB / 294.7 MB, free: 26.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006012/0.128, allocations: 0.7689 MB / 295.5 MB, free: 25.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.128, allocations: 35.33 kB / 295.5 MB, free: 25.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.1282, allocations: 0.6489 MB / 296.1 MB, free: 25.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.402e-05/0.1283, allocations: 166.7 kB / 296.3 MB, free: 25.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.1284, allocations: 140.1 kB / 296.4 MB, free: 25.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1285, allocations: 0.5683 MB / 297 MB, free: 24.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.1287, allocations: 86.81 kB / 297.1 MB, free: 24.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.1289, allocations: 0.5213 MB / 297.6 MB, free: 24.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004019/0.1293, allocations: 0.6411 MB / 298.3 MB, free: 23.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1293, allocations: 2.125 kB / 298.3 MB, free: 23.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006806/0.13, allocations: 0.6521 MB / 298.9 MB, free: 23.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.13, allocations: 9.922 kB / 298.9 MB, free: 23.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.13, allocations: 9.312 kB / 298.9 MB, free: 23.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001799/0.1302, allocations: 80.64 kB / 299 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.1305, allocations: 152.5 kB / 299.2 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.1315, allocations: 3.872 MB / 303 MB, free: 19.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.1318, allocations: 29.3 kB / 303.1 MB, free: 19.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.1318, allocations: 33.28 kB / 303.1 MB, free: 19.95 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.0001424/0.1319, allocations: 212.1 kB / 303.3 MB, free: 19.76 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.231e-05/0.132, allocations: 102.8 kB / 303.4 MB, free: 19.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004349/0.1325, allocations: 373.7 kB / 303.8 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/0.1325, allocations: 3.844 kB / 303.8 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.1325, allocations: 2.781 kB / 303.8 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1325, allocations: 10.5 kB / 303.8 MB, free: 19.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.1336, allocations: 1.177 MB / 305 MB, free: 18.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.1336, allocations: 5.656 kB / 305 MB, free: 18.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.1337, allocations: 74.8 kB / 305 MB, free: 18.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/0.1339, allocations: 68.23 kB / 305.1 MB, free: 18.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.1339, allocations: 12.36 kB / 305.1 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009089/0.1348, allocations: 3.846 MB / 309 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1348, allocations: 2.5 kB / 309 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005479/0.1353, allocations: 0.6792 MB / 309.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.1355, allocations: 117 kB / 309.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.224e-05/0.1355, allocations: 14.22 kB / 309.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.1357, allocations: 21.61 kB / 309.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.501e-05/0.1358, allocations: 41.5 kB / 309.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.1358, allocations: 14.83 kB / 309.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003681/0.1362, allocations: 490 kB / 310.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1362, allocations: 0 / 310.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000492/0.1367, allocations: 208.9 kB / 310.5 MB, free: 14.23 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.0001581/0.1368, allocations: 122.1 kB / 310.7 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000597/0.1374, allocations: 0.6839 MB / 311.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1374, allocations: 5.438 kB / 311.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.1377, allocations: 498.2 kB / 311.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005548/0.1383, allocations: 215.8 kB / 312 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.14, allocations: 1.635 MB / 313.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.192e-05/0.1401, allocations: 183.5 kB / 313.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001866/0.1403, allocations: 94.22 kB / 313.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.455e-05/0.1404, allocations: 56.53 kB / 314 MB, free: 12.11 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1404, allocations: 0 / 314 MB, free: 12.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01144/0.1518, allocations: 10.95 MB / 325 MB, free: 3.344 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: 3.010517726186663]