Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.0007904/0.0007904, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.001388/0.001388, allocations: 168.1 kB / 25.7 MB, free: 8.426 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.8364/0.8364, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.114e-05/1.227e-05, allocations: 10.25 kB / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006024/0.006036, allocations: 7.952 MB / 259.5 MB, free: 15.26 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003398/0.009434, allocations: 2.758 MB / 262.3 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004466/0.009881, allocations: 27.88 kB / 262.3 MB, free: 12.46 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009791/0.01086, allocations: 0.544 MB / 262.8 MB, free: 11.92 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006983/0.01156, allocations: 0.5271 MB / 263.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.01191, allocations: 263.6 kB / 263.6 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.01309, allocations: 1.56 MB / 265.2 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.01351, allocations: 391.3 kB / 265.5 MB, free: 9.148 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007619/0.01427, allocations: 0.8846 MB / 266.4 MB, free: 8.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004991/0.01477, allocations: 482.6 kB / 266.9 MB, free: 7.789 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000135/0.0149, allocations: 140 kB / 267 MB, free: 7.652 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.01515, allocations: 175.9 kB / 267.2 MB, free: 7.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.01531, allocations: 294.8 kB / 267.5 MB, free: 7.191 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000322/0.01563, allocations: 474.8 kB / 268 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008159/0.01645, allocations: 0.9379 MB / 268.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.01645, allocations: 0 / 268.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.01645, allocations: 0 / 268.9 MB, free: 5.785 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.01646, allocations: 4 kB / 268.9 MB, free: 5.781 MB / 250.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.001347/0.01781, allocations: 1.394 MB / 270.3 MB, free: 4.359 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.796e-05/0.01784, allocations: 11.98 kB / 270.3 MB, free: 4.348 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004115/0.01825, allocations: 236.7 kB / 270.5 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000634/0.01889, allocations: 0.5379 MB / 271.1 MB, free: 3.547 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.625e-05/0.01892, allocations: 74 kB / 271.2 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-05/0.01901, allocations: 103.9 kB / 271.3 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.01962, allocations: 0.7731 MB / 272 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.01965, allocations: 3.984 kB / 272 MB, free: 2.543 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.01969, allocations: 44 kB / 272.1 MB, free: 2.5 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.0197, allocations: 24 kB / 272.1 MB, free: 2.477 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002927/0.01999, allocations: 237.8 kB / 272.3 MB, free: 2.242 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002629/0.02262, allocations: 2.965 MB / 275.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.02288, allocations: 230.7 kB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.02309, allocations: 176.7 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.02311, allocations: 8 kB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.02313, allocations: 38.55 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.442e-06/0.02314, allocations: 0 / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001052/0.02419, allocations: 0.7878 MB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.02422, allocations: 85.11 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004443/0.02466, allocations: 0.6691 MB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.02468, allocations: 37.64 kB / 277.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.02488, allocations: 0.5011 MB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.136e-05/0.02496, allocations: 174.5 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.02506, allocations: 130.5 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.02517, allocations: 398.5 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.88e-05/0.02524, allocations: 65.97 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.02544, allocations: 385.3 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.02576, allocations: 0.4923 MB / 279.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.02577, allocations: 3.938 kB / 279.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004513/0.02622, allocations: 490.6 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.02623, allocations: 11.98 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.02624, allocations: 12 kB / 279.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/0.02638, allocations: 69.92 kB / 280 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.02663, allocations: 155.8 kB / 280.2 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.02788, allocations: 2.596 MB / 282.8 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.0281, allocations: 28 kB / 282.8 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.02813, allocations: 28 kB / 282.8 MB, free: 6.98 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.0001431/0.02827, allocations: 169.5 kB / 283 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.437e-05/0.02834, allocations: 63.92 kB / 283 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002991/0.02863, allocations: 302.8 kB / 283.3 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.02864, allocations: 4 kB / 283.3 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.02864, allocations: 0 / 283.3 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.02864, allocations: 4 kB / 283.3 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007712/0.02942, allocations: 0.7787 MB / 284.1 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.02942, allocations: 4 kB / 284.1 MB, free: 5.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001485/0.02957, allocations: 67.84 kB / 284.2 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.02968, allocations: 69.88 kB / 284.3 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.0297, allocations: 12 kB / 284.3 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/0.03073, allocations: 2.588 MB / 286.9 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.03073, allocations: 0 / 286.9 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000409/0.03114, allocations: 494.7 kB / 287.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.03126, allocations: 67.48 kB / 287.4 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.976e-05/0.03131, allocations: 15.98 kB / 287.4 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.03161, allocations: 23.98 kB / 287.4 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.03166, allocations: 43.81 kB / 287.5 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.03168, allocations: 16 kB / 287.5 MB, free: 1.984 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002495/0.03193, allocations: 327.3 kB / 287.8 MB, free: 1.664 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03193, allocations: 0 / 287.8 MB, free: 1.664 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004492/0.03238, allocations: 204 kB / 288 MB, free: 1.465 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.0001403/0.03252, allocations: 104.3 kB / 288.1 MB, free: 1.352 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004441/0.03296, allocations: 0.5353 MB / 288.7 MB, free: 0.793 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/0.03298, allocations: 12.5 kB / 288.7 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.03322, allocations: 366.9 kB / 289 MB, free: 400 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.03369, allocations: 207.4 kB / 289.2 MB, free: 204 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.03547, allocations: 1.587 MB / 290.8 MB, free: 14.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.03558, allocations: 171.5 kB / 291 MB, free: 14.36 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002406/0.03583, allocations: 98.67 kB / 291.1 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.03613, allocations: 229.2 kB / 291.3 MB, free: 14.04 MB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.03613, allocations: 4 kB / 291.3 MB, free: 14.03 MB / 282.7 MB Notification: Performance of Templates: time 0.01329/0.04942, allocations: 11.06 MB / 302.4 MB, free: 3.012 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 2.726505662314594]