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.0008955/0.0008955, 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.0008955/0.0008955, allocations: 148.2 kB / 24.9 MB, free: 9.156 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.9647/0.9647, allocations: 173.3 MB / 201.5 MB, free: 9.227 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.803e-06/1.803e-06, allocations: 0 / 268.5 MB, free: 6.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.077e-05/2.257e-05, allocations: 6.312 kB / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009355/0.009377, allocations: 7.914 MB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005322/0.0147, allocations: 2.649 MB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006168/0.01532, allocations: 27.88 kB / 279.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.01672, allocations: 0.544 MB / 279.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.01784, allocations: 0.5155 MB / 280.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004842/0.01833, allocations: 247.7 kB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.01937, allocations: 1.536 MB / 282 MB, free: 8.672 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004406/0.01981, allocations: 391.1 kB / 282.3 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007639/0.02058, allocations: 0.8651 MB / 283.2 MB, free: 7.391 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004101/0.02099, allocations: 474.6 kB / 283.7 MB, free: 6.926 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.02109, allocations: 136 kB / 283.8 MB, free: 6.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.0213, allocations: 172 kB / 284 MB, free: 6.625 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.02143, allocations: 286.8 kB / 284.2 MB, free: 6.344 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002744/0.02171, allocations: 466.9 kB / 284.7 MB, free: 5.887 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007558/0.02246, allocations: 0.9301 MB / 285.6 MB, free: 4.953 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.02247, allocations: 4 kB / 285.6 MB, free: 4.949 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.02247, allocations: 0 / 285.6 MB, free: 4.949 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.02248, allocations: 0 / 285.6 MB, free: 4.949 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.001189/0.02366, allocations: 1.367 MB / 287 MB, free: 3.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.02369, allocations: 8.031 kB / 287 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003889/0.02408, allocations: 232.7 kB / 287.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/0.02466, allocations: 0.5176 MB / 287.8 MB, free: 2.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.0247, allocations: 77.98 kB / 287.8 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-05/0.02478, allocations: 104 kB / 287.9 MB, free: 2.594 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006072/0.02538, allocations: 0.7653 MB / 288.7 MB, free: 1.773 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.02541, allocations: 7.953 kB / 288.7 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.02545, allocations: 44 kB / 288.7 MB, free: 1.723 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.02546, allocations: 27.94 kB / 288.8 MB, free: 1.695 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002787/0.02574, allocations: 233.8 kB / 289 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09707/0.1228, allocations: 2.937 MB / 291.9 MB, free: 26.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.1231, allocations: 235.1 kB / 292.2 MB, free: 26.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002272/0.1233, allocations: 169.7 kB / 292.3 MB, free: 26.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1234, allocations: 8.109 kB / 292.3 MB, free: 26.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.1234, allocations: 45.75 kB / 292.4 MB, free: 26.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.834e-06/0.1234, allocations: 0 / 292.4 MB, free: 26.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001174/0.1246, allocations: 0.744 MB / 293.1 MB, free: 26.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.1246, allocations: 82.7 kB / 293.2 MB, free: 26.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005084/0.1251, allocations: 0.6593 MB / 293.9 MB, free: 26.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.1251, allocations: 35.27 kB / 293.9 MB, free: 26.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.1253, allocations: 0.4937 MB / 294.4 MB, free: 26.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/0.1253, allocations: 169.1 kB / 294.6 MB, free: 26.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1255, allocations: 135.4 kB / 294.7 MB, free: 26.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.137e-05/0.1255, allocations: 389.9 kB / 295.1 MB, free: 25.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.585e-05/0.1256, allocations: 63.45 kB / 295.1 MB, free: 25.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.1258, allocations: 390.2 kB / 295.5 MB, free: 25.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.1261, allocations: 496.2 kB / 296 MB, free: 25.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.1261, allocations: 4.469 kB / 296 MB, free: 25.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0004964/0.1266, allocations: 488.8 kB / 296.5 MB, free: 24.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1266, allocations: 10.78 kB / 296.5 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.1266, allocations: 9.562 kB / 296.5 MB, free: 24.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000147/0.1267, allocations: 68.11 kB / 296.6 MB, free: 24.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.127, allocations: 159.5 kB / 296.7 MB, free: 24.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009851/0.128, allocations: 2.596 MB / 299.3 MB, free: 22.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.1283, allocations: 37.06 kB / 299.4 MB, free: 22.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.1283, allocations: 32.94 kB / 299.4 MB, free: 22.53 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.0001277/0.1284, allocations: 164.1 kB / 299.6 MB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.261e-05/0.1285, allocations: 60.88 kB / 299.6 MB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003034/0.1288, allocations: 301.6 kB / 299.9 MB, free: 22.33 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1288, allocations: 3.344 kB / 299.9 MB, free: 22.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.1288, allocations: 2.312 kB / 299.9 MB, free: 22.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1288, allocations: 1.969 kB / 299.9 MB, free: 22.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008005/0.1296, allocations: 0.763 MB / 300.7 MB, free: 22.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1296, allocations: 2.781 kB / 300.7 MB, free: 22.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.1298, allocations: 73.19 kB / 300.8 MB, free: 22.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.1299, allocations: 60.31 kB / 300.8 MB, free: 22.03 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.1299, allocations: 11.23 kB / 300.8 MB, free: 22.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007548/0.1306, allocations: 2.588 MB / 303.4 MB, free: 19.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.1306, allocations: 2.375 kB / 303.4 MB, free: 19.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003755/0.131, allocations: 488 kB / 303.9 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.1311, allocations: 71.08 kB / 304 MB, free: 19.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/0.1312, allocations: 15.83 kB / 304 MB, free: 19.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.1313, allocations: 23.06 kB / 304 MB, free: 19.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.1314, allocations: 36.58 kB / 304 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.1314, allocations: 12.06 kB / 304 MB, free: 19.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002603/0.1317, allocations: 316.1 kB / 304.4 MB, free: 19.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1317, allocations: 1.625 kB / 304.4 MB, free: 19.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004695/0.1321, allocations: 203.8 kB / 304.6 MB, free: 19.31 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.0001245/0.1323, allocations: 110.7 kB / 304.7 MB, free: 19.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004204/0.1327, allocations: 0.5248 MB / 305.2 MB, free: 18.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.626e-05/0.1327, allocations: 12.59 kB / 305.2 MB, free: 18.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.1329, allocations: 367.5 kB / 305.6 MB, free: 18.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.1334, allocations: 208.5 kB / 305.8 MB, free: 18.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.135, allocations: 1.555 MB / 307.3 MB, free: 17.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.1351, allocations: 169.8 kB / 307.5 MB, free: 17.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.1353, allocations: 101.7 kB / 307.6 MB, free: 17.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.1356, allocations: 232.5 kB / 307.8 MB, free: 17.7 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1356, allocations: 4 kB / 307.8 MB, free: 17.7 MB / 266.7 MB Notification: Performance of Templates: time 0.01174/0.1474, allocations: 10.84 MB / 318.7 MB, free: 10.5 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 -s gbode -gbm=radauIIA3 -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.8160397871397436]