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.0009702/0.0009702, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0008953/0.0008953, allocations: 140.4 kB / 25.59 MB, free: 8.906 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.9156/0.9156, allocations: 173.4 MB / 202.3 MB, free: 8.289 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 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.364e-05/2.517e-05, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.006827/0.006853, allocations: 7.852 MB / 277.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003676/0.01053, allocations: 2.568 MB / 279.6 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006545/0.01118, allocations: 27.88 kB / 279.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.01258, allocations: 0.5324 MB / 280.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007878/0.01337, allocations: 0.5194 MB / 280.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.0137, allocations: 247.7 kB / 281 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.01474, allocations: 1.539 MB / 282.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004316/0.01518, allocations: 371.2 kB / 282.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007354/0.01591, allocations: 0.8729 MB / 283.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004304/0.01634, allocations: 462.6 kB / 284.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.01646, allocations: 136 kB / 284.3 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00021/0.01667, allocations: 176 kB / 284.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.01681, allocations: 282.9 kB / 284.8 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003155/0.01712, allocations: 470.9 kB / 285.2 MB, free: 9.688 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008188/0.01794, allocations: 0.9261 MB / 286.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.01794, allocations: 0 / 286.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.01794, allocations: 4 kB / 286.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.01796, allocations: 0 / 286.1 MB, free: 8.754 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.001665/0.01962, allocations: 1.519 MB / 287.7 MB, free: 7.195 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.01965, allocations: 8.031 kB / 287.7 MB, free: 7.188 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004128/0.02006, allocations: 272 kB / 287.9 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006588/0.02072, allocations: 0.649 MB / 288.6 MB, free: 6.242 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/0.02076, allocations: 74 kB / 288.7 MB, free: 6.172 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.609e-05/0.02086, allocations: 107.9 kB / 288.8 MB, free: 6.066 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006861/0.02154, allocations: 0.7691 MB / 289.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.02157, allocations: 7.891 kB / 289.5 MB, free: 5.227 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/0.02162, allocations: 40 kB / 289.6 MB, free: 5.188 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.02163, allocations: 24 kB / 289.6 MB, free: 5.164 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003384/0.02197, allocations: 285.6 kB / 289.9 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002991/0.02496, allocations: 3.647 MB / 293.5 MB, free: 1.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.02527, allocations: 252.1 kB / 293.8 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.02551, allocations: 178.2 kB / 294 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.02554, allocations: 8.328 kB / 294 MB, free: 0.582 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.0258, allocations: 41.72 kB / 294 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.495e-06/0.0258, allocations: 0 / 294 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001083/0.02688, allocations: 0.8217 MB / 294.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.02692, allocations: 81.11 kB / 294.9 MB, free: 15.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000498/0.02742, allocations: 0.733 MB / 295.6 MB, free: 14.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.02744, allocations: 33.7 kB / 295.7 MB, free: 14.78 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000322/0.02776, allocations: 0.6425 MB / 296.3 MB, free: 14.13 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.857e-05/0.02785, allocations: 162.6 kB / 296.5 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.02798, allocations: 140.2 kB / 296.6 MB, free: 13.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.02816, allocations: 0.578 MB / 297.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.37e-05/0.02826, allocations: 65.94 kB / 297.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.02854, allocations: 0.5098 MB / 297.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.02894, allocations: 0.6012 MB / 298.4 MB, free: 11.68 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.02895, allocations: 4 kB / 298.4 MB, free: 11.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0005842/0.02953, allocations: 0.5888 MB / 299 MB, free: 11.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.02955, allocations: 8 kB / 299 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.02956, allocations: 16.47 kB / 299 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001533/0.02971, allocations: 75.33 kB / 299.1 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.02998, allocations: 147.8 kB / 299.2 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.0318, allocations: 3.812 MB / 303 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.03204, allocations: 44 kB / 303.1 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.03207, allocations: 28 kB / 303.1 MB, free: 6.715 MB / 282.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.0001714/0.03224, allocations: 208.3 kB / 303.3 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.845e-05/0.03233, allocations: 91.48 kB / 303.4 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003699/0.0327, allocations: 356.2 kB / 303.7 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.0327, allocations: 4 kB / 303.7 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.0327, allocations: 0 / 303.7 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.03271, allocations: 0 / 303.7 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009315/0.03364, allocations: 1.018 MB / 304.7 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.03364, allocations: 4 kB / 304.7 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.0338, allocations: 67.91 kB / 304.8 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.03392, allocations: 63.42 kB / 304.9 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.03394, allocations: 12 kB / 304.9 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.03558, allocations: 3.792 MB / 308.7 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.03558, allocations: 7.938 kB / 308.7 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.03607, allocations: 0.6089 MB / 309.3 MB, free: 104 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.03622, allocations: 119.6 kB / 309.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.111e-05/0.03628, allocations: 8.031 kB / 309.4 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.03646, allocations: 31.97 kB / 309.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.03652, allocations: 39.81 kB / 309.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.03653, allocations: 12 kB / 309.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002849/0.03682, allocations: 430.7 kB / 309.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03682, allocations: 0 / 309.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005357/0.03735, allocations: 204 kB / 310.1 MB, free: 15.28 MB / 298.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.0001554/0.03751, allocations: 123.2 kB / 310.2 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005358/0.03805, allocations: 0.6506 MB / 310.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.03805, allocations: 0 / 310.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003231/0.03837, allocations: 497.1 kB / 311.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006298/0.039, allocations: 210.8 kB / 311.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.04103, allocations: 1.612 MB / 313.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.04116, allocations: 171.3 kB / 313.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.04137, allocations: 98.69 kB / 313.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003167/0.04169, allocations: 266.1 kB / 313.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.04169, allocations: 0 / 313.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of Templates: time 0.01498/0.05667, allocations: 11.1 MB / 324.8 MB, free: 0.6289 MB / 298.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.944784943945706]