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.001365/0.001365, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001536/0.001536, allocations: 143.7 kB / 24.97 MB, free: 8.375 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.9934/0.9934, allocations: 173.4 MB / 201.5 MB, free: 9.336 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.433e-06/1.433e-06, allocations: 0 / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.403e-05/2.546e-05, allocations: 2.312 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007811/0.007836, allocations: 8.019 MB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004209/0.01204, allocations: 2.583 MB / 278.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006589/0.0127, allocations: 31.88 kB / 278.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.01409, allocations: 0.5167 MB / 279.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009069/0.015, allocations: 0.5155 MB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.01542, allocations: 251.7 kB / 280 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.01676, allocations: 1.532 MB / 281.5 MB, free: 9.211 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005468/0.01731, allocations: 375.2 kB / 281.9 MB, free: 8.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009494/0.01826, allocations: 0.8573 MB / 282.8 MB, free: 7.961 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/0.01883, allocations: 486.5 kB / 283.2 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.01898, allocations: 136 kB / 283.4 MB, free: 7.352 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002634/0.01924, allocations: 172 kB / 283.5 MB, free: 7.184 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001779/0.01942, allocations: 294.9 kB / 283.8 MB, free: 6.895 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004336/0.01985, allocations: 462.9 kB / 284.3 MB, free: 6.441 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.02093, allocations: 0.9417 MB / 285.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.748e-06/0.02093, allocations: 0 / 285.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.02093, allocations: 0 / 285.2 MB, free: 5.496 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.02095, allocations: 0 / 285.2 MB, free: 5.496 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.001865/0.02281, allocations: 1.511 MB / 286.7 MB, free: 3.945 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.02285, allocations: 8.031 kB / 286.7 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005879/0.02344, allocations: 272 kB / 287 MB, free: 3.672 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009553/0.02439, allocations: 0.6802 MB / 287.7 MB, free: 2.961 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.426e-05/0.02445, allocations: 78 kB / 287.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.02457, allocations: 107.9 kB / 287.9 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.02569, allocations: 0.8162 MB / 288.7 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.02572, allocations: 0 / 288.7 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.756e-05/0.02579, allocations: 47.94 kB / 288.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.02581, allocations: 24 kB / 288.7 MB, free: 1.832 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006997/0.02651, allocations: 355.6 kB / 289.1 MB, free: 1.484 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1118/0.1383, allocations: 3.62 MB / 292.7 MB, free: 21.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.1388, allocations: 275.5 kB / 293 MB, free: 21.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003688/0.1391, allocations: 190 kB / 293.2 MB, free: 21.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.1392, allocations: 8.484 kB / 293.2 MB, free: 21.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.1392, allocations: 44.78 kB / 293.2 MB, free: 21.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.094e-06/0.1392, allocations: 1.031 kB / 293.2 MB, free: 21.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001712/0.1409, allocations: 1.006 MB / 294.2 MB, free: 20.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.1409, allocations: 86.88 kB / 294.3 MB, free: 20.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000756/0.1417, allocations: 0.7513 MB / 295.1 MB, free: 20.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1417, allocations: 34.98 kB / 295.1 MB, free: 20.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002729/0.142, allocations: 0.6404 MB / 295.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.767e-05/0.1421, allocations: 165.5 kB / 295.9 MB, free: 20.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.1422, allocations: 137.2 kB / 296 MB, free: 19.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1423, allocations: 0.5652 MB / 296.6 MB, free: 19.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.1425, allocations: 84.48 kB / 296.7 MB, free: 19.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002937/0.1428, allocations: 0.5244 MB / 297.2 MB, free: 18.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.1433, allocations: 0.632 MB / 297.8 MB, free: 18.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.1433, allocations: 4.281 kB / 297.8 MB, free: 18.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0008628/0.1442, allocations: 0.6415 MB / 298.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.1442, allocations: 11.05 kB / 298.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.1442, allocations: 10.19 kB / 298.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002307/0.1444, allocations: 86.84 kB / 298.6 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.1448, allocations: 146.4 kB / 298.7 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.1461, allocations: 3.861 MB / 302.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.1464, allocations: 30.92 kB / 302.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.1465, allocations: 34.59 kB / 302.7 MB, free: 14.59 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.0001693/0.1466, allocations: 209 kB / 302.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1467, allocations: 99.95 kB / 303 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005263/0.1473, allocations: 370.2 kB / 303.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1473, allocations: 4 kB / 303.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1473, allocations: 1.859 kB / 303.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1473, allocations: 11.33 kB / 303.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.1487, allocations: 1.16 MB / 304.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1487, allocations: 3.594 kB / 304.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.1489, allocations: 71.56 kB / 304.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001656/0.1491, allocations: 68.22 kB / 304.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1491, allocations: 11.67 kB / 304.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.1503, allocations: 3.849 MB / 308.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.1503, allocations: 6.578 kB / 308.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.151, allocations: 0.6534 MB / 309.2 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.1511, allocations: 115.1 kB / 309.3 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.706e-05/0.1512, allocations: 13.77 kB / 309.3 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.1515, allocations: 26.98 kB / 309.3 MB, free: 9.746 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.274e-05/0.1515, allocations: 38.59 kB / 309.3 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.1516, allocations: 15.33 kB / 309.4 MB, free: 9.742 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004784/0.152, allocations: 470.8 kB / 309.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.152, allocations: 0 / 309.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007519/0.1528, allocations: 202.2 kB / 310 MB, free: 9.605 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.0001878/0.153, allocations: 130.2 kB / 310.1 MB, free: 9.508 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000715/0.1537, allocations: 0.6867 MB / 310.8 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1537, allocations: 0 / 310.8 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.154, allocations: 497.6 kB / 311.3 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007753/0.1548, allocations: 205.2 kB / 311.5 MB, free: 8.648 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.1572, allocations: 1.621 MB / 313.1 MB, free: 7.672 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.1573, allocations: 170.6 kB / 313.3 MB, free: 7.598 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002524/0.1576, allocations: 99.48 kB / 313.4 MB, free: 7.574 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.691e-05/0.1577, allocations: 54.31 kB / 313.5 MB, free: 7.562 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1577, allocations: 4 kB / 313.5 MB, free: 7.559 MB / 266.7 MB Notification: Performance of Templates: time 0.01397/0.1716, allocations: 10.1 MB / 323.6 MB, free: 1.68 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 -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: 3.205581479007378]