Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007675/0.0007675, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009789/0.0009789, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9321/0.9321, allocations: 177.1 MB / 206.1 MB, free: 4.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.421e-05/2.576e-05, allocations: 2.312 kB / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.00902/0.009046, allocations: 7.996 MB / 282.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003346/0.01239, allocations: 2.68 MB / 284.9 MB, free: 9.695 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004725/0.01286, allocations: 31.81 kB / 284.9 MB, free: 9.664 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009917/0.01386, allocations: 0.5323 MB / 285.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007023/0.01456, allocations: 0.5272 MB / 286 MB, free: 8.598 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003797/0.01494, allocations: 275.5 kB / 286.2 MB, free: 8.328 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.01611, allocations: 1.56 MB / 287.8 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000474/0.01659, allocations: 375.3 kB / 288.2 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009511/0.01754, allocations: 0.8923 MB / 289.1 MB, free: 5.473 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005079/0.01805, allocations: 486.6 kB / 289.5 MB, free: 4.996 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.01817, allocations: 140 kB / 289.7 MB, free: 4.859 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002592/0.01843, allocations: 180 kB / 289.8 MB, free: 4.684 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.01862, allocations: 290.8 kB / 290.1 MB, free: 4.398 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003255/0.01894, allocations: 470.8 kB / 290.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008241/0.01977, allocations: 0.9534 MB / 291.5 MB, free: 2.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.01977, allocations: 0 / 291.5 MB, free: 2.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.01977, allocations: 0 / 291.5 MB, free: 2.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.01978, allocations: 0 / 291.5 MB, free: 2.98 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.001423/0.0212, allocations: 1.554 MB / 293.1 MB, free: 1.387 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.02124, allocations: 12.03 kB / 293.1 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004533/0.02169, allocations: 280 kB / 293.4 MB, free: 1.102 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006377/0.02233, allocations: 0.677 MB / 294.1 MB, free: 404 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.766e-05/0.02237, allocations: 74 kB / 294.1 MB, free: 328 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.84e-05/0.02245, allocations: 104 kB / 294.2 MB, free: 224 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.02318, allocations: 0.773 MB / 295 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.0232, allocations: 3.953 kB / 295 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.979e-05/0.02325, allocations: 40 kB / 295 MB, free: 15.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.02327, allocations: 28 kB / 295.1 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006268/0.0239, allocations: 285.6 kB / 295.4 MB, free: 15.04 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002872/0.02677, allocations: 3.671 MB / 299 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.02706, allocations: 255.3 kB / 299.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.0273, allocations: 175.5 kB / 299.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.02732, allocations: 19.91 kB / 299.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.02735, allocations: 41.39 kB / 299.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=41): time 1.563e-06/0.02735, allocations: 4 kB / 299.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.001205/0.02856, allocations: 0.8494 MB / 300.4 MB, free: 9.75 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.02859, allocations: 89.09 kB / 300.4 MB, free: 9.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005013/0.02909, allocations: 0.7486 MB / 301.2 MB, free: 8.883 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.02911, allocations: 33.7 kB / 301.2 MB, free: 8.844 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002883/0.0294, allocations: 0.6503 MB / 301.9 MB, free: 8.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.192e-05/0.02948, allocations: 170.5 kB / 302 MB, free: 8.016 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.0296, allocations: 144.2 kB / 302.2 MB, free: 7.867 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004592/0.03006, allocations: 0.5741 MB / 302.8 MB, free: 7.281 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.0302, allocations: 65.94 kB / 302.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.0305, allocations: 0.5133 MB / 303.3 MB, free: 6.512 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003863/0.03088, allocations: 0.6109 MB / 303.9 MB, free: 5.719 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.03089, allocations: 4 kB / 303.9 MB, free: 5.715 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000592/0.03148, allocations: 0.5971 MB / 304.5 MB, free: 5.102 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.0315, allocations: 12.62 kB / 304.6 MB, free: 5.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.03151, allocations: 8 kB / 304.6 MB, free: 5.082 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001504/0.03166, allocations: 79.31 kB / 304.6 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.03192, allocations: 151.8 kB / 304.8 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.03339, allocations: 3.811 MB / 308.6 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.03363, allocations: 36.11 kB / 308.6 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.03365, allocations: 31.94 kB / 308.7 MB, free: 0.7422 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 (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.0001611/0.03381, allocations: 212.2 kB / 308.9 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.544e-05/0.0339, allocations: 99.48 kB / 309 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006117/0.03451, allocations: 352.2 kB / 309.3 MB, free: 64 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.03451, allocations: 4 kB / 309.3 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.03452, allocations: 4 kB / 309.3 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.03452, allocations: 0 / 309.3 MB, free: 56 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001294/0.03581, allocations: 1.03 MB / 310.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.03582, allocations: 4 kB / 310.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.03607, allocations: 67.91 kB / 310.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.03625, allocations: 71.45 kB / 310.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.03628, allocations: 8 kB / 310.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.03787, allocations: 3.804 MB / 314.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.03787, allocations: 0 / 314.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004983/0.03837, allocations: 0.613 MB / 314.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.03851, allocations: 123.4 kB / 315 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.425e-05/0.03856, allocations: 20.02 kB / 315.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.03876, allocations: 19.98 kB / 315.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.03881, allocations: 47.81 kB / 315.1 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.03883, allocations: 12 kB / 315.1 MB, free: 9.875 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002795/0.03911, allocations: 442.8 kB / 315.6 MB, free: 9.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03911, allocations: 4 kB / 315.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004649/0.03957, allocations: 200 kB / 315.8 MB, free: 9.25 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 (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.0001419/0.03971, allocations: 127.1 kB / 315.9 MB, free: 9.113 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007738/0.04049, allocations: 0.6603 MB / 316.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.04049, allocations: 2 kB / 316.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.04077, allocations: 491.3 kB / 317 MB, free: 7.898 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.04133, allocations: 207 kB / 317.2 MB, free: 7.699 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.04311, allocations: 1.646 MB / 318.9 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.04322, allocations: 179.4 kB / 319.1 MB, free: 5.785 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002053/0.04342, allocations: 98.75 kB / 319.2 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003061/0.04373, allocations: 274 kB / 319.4 MB, free: 5.414 MB / 298.7 MB Notification: Performance of SimCode: time 6.72e-07/0.04373, allocations: 3.938 kB / 319.4 MB, free: 5.41 MB / 298.7 MB Notification: Performance of Templates: time 0.01393/0.05766, allocations: 11.37 MB / 330.8 MB, free: 10.27 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.9825019487179816]