Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009333/0.0009333, allocations: 75.77 kB / 22.45 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008909/0.0008909, allocations: 170.1 kB / 25.75 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8624/0.8624, allocations: 158.6 MB / 187.6 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.094e-05, allocations: 6.109 kB / 251.1 MB, free: 7.793 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01164/0.01166, allocations: 11.6 MB / 262.7 MB, free: 12.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005318/0.01698, allocations: 3.161 MB / 265.9 MB, free: 8.961 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006567/0.01764, allocations: 43.81 kB / 265.9 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.01875, allocations: 0.6244 MB / 266.5 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009648/0.01972, allocations: 0.7597 MB / 267.3 MB, free: 7.523 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004792/0.0202, allocations: 403.4 kB / 267.7 MB, free: 7.129 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001664/0.02186, allocations: 2.342 MB / 270 MB, free: 4.773 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006329/0.02249, allocations: 0.599 MB / 270.6 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.02363, allocations: 1.317 MB / 272 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006293/0.02426, allocations: 0.7089 MB / 272.7 MB, free: 2.098 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.02443, allocations: 220 kB / 272.9 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002582/0.02469, allocations: 255.9 kB / 273.1 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.02489, allocations: 442.3 kB / 273.6 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005247/0.02542, allocations: 0.7015 MB / 274.3 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001164/0.02658, allocations: 1.401 MB / 275.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.02658, allocations: 0 / 275.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.02659, allocations: 0 / 275.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.129e-05/0.02661, allocations: 4 kB / 275.7 MB, free: 15.09 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002112/0.02872, allocations: 2.146 MB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.02875, allocations: 12.03 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005787/0.02933, allocations: 387.6 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.03042, allocations: 0.9792 MB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.379e-05/0.03049, allocations: 119.5 kB / 279.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.03063, allocations: 164.3 kB / 279.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.03204, allocations: 1.279 MB / 280.7 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.752e-05/0.03208, allocations: 23.88 kB / 280.8 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.259e-05/0.03217, allocations: 60 kB / 280.8 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.03219, allocations: 43.94 kB / 280.9 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008561/0.03305, allocations: 0.5385 MB / 281.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004862/0.03791, allocations: 6.426 MB / 287.8 MB, free: 2.348 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004132/0.03832, allocations: 265.4 kB / 288.1 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.03852, allocations: 133.1 kB / 288.2 MB, free: 1.941 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.03855, allocations: 8.5 kB / 288.2 MB, free: 1.934 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002725/0.03883, allocations: 275.3 kB / 288.5 MB, free: 1.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.03883, allocations: 0 / 288.5 MB, free: 1.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00169/0.04052, allocations: 1.261 MB / 289.8 MB, free: 332 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.718e-05/0.0406, allocations: 166.7 kB / 289.9 MB, free: 128 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009264/0.04152, allocations: 1.075 MB / 291 MB, free: 15.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.04155, allocations: 41.69 kB / 291 MB, free: 14.99 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004524/0.042, allocations: 0.9618 MB / 292 MB, free: 14.02 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.04212, allocations: 214.3 kB / 292.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.04229, allocations: 224.4 kB / 292.4 MB, free: 13.58 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.04242, allocations: 0.516 MB / 292.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.04262, allocations: 152.2 kB / 293.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005667/0.04319, allocations: 1.072 MB / 294.2 MB, free: 11.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008796/0.04407, allocations: 1.164 MB / 295.3 MB, free: 9.883 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.545e-06/0.04407, allocations: 7.938 kB / 295.3 MB, free: 9.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001073/0.04515, allocations: 1.051 MB / 296.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.04519, allocations: 41.88 kB / 296.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.04521, allocations: 28 kB / 296.5 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001827/0.04539, allocations: 63.36 kB / 296.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004535/0.04584, allocations: 263.6 kB / 296.8 MB, free: 8.395 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/0.04757, allocations: 3.487 MB / 300.3 MB, free: 4.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005705/0.04814, allocations: 68.08 kB / 300.3 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.671e-05/0.0482, allocations: 60 kB / 300.4 MB, free: 4.539 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002836/0.04849, allocations: 255.9 kB / 300.6 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.04862, allocations: 139.2 kB / 300.8 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006199/0.04924, allocations: 424.6 kB / 301.2 MB, free: 3.711 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.04925, allocations: 11.92 kB / 301.2 MB, free: 3.699 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.04925, allocations: 0 / 301.2 MB, free: 3.699 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.04926, allocations: 4 kB / 301.2 MB, free: 3.695 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.05109, allocations: 1.533 MB / 302.7 MB, free: 2.039 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.0511, allocations: 8.406 kB / 302.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003082/0.05141, allocations: 107.8 kB / 302.9 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.05152, allocations: 47.34 kB / 302.9 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.05155, allocations: 16 kB / 302.9 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/0.05308, allocations: 3.46 MB / 306.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.05309, allocations: 7.984 kB / 306.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008367/0.05393, allocations: 0.8099 MB / 307.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.05418, allocations: 167.2 kB / 307.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.05428, allocations: 19.98 kB / 307.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/0.0546, allocations: 27.98 kB / 307.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.05471, allocations: 51.8 kB / 307.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.05473, allocations: 16 kB / 307.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007327/0.05546, allocations: 0.6339 MB / 308.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.05546, allocations: 0 / 308.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008727/0.05634, allocations: 296 kB / 308.4 MB, free: 12.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0002108/0.05655, allocations: 139 kB / 308.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009901/0.05754, allocations: 0.9109 MB / 309.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.05754, allocations: 4 kB / 309.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003872/0.05793, allocations: 0.4936 MB / 309.9 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.05899, allocations: 314.3 kB / 310.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.06233, allocations: 2.405 MB / 312.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.06252, allocations: 224.2 kB / 312.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000408/0.06293, allocations: 154.1 kB / 313 MB, free: 7.184 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.06308, allocations: 80.48 kB / 313.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of SimCode: time 8.92e-07/0.06308, allocations: 0 / 313.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of Templates: time 0.02181/0.08489, allocations: 14.38 MB / 327.5 MB, free: 8.738 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.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.1549887228757143]