Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.001029/0.001029, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001008/0.001008, allocations: 168.7 kB / 24.91 MB, free: 9.199 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.8747/0.8747, allocations: 177.1 MB / 205.3 MB, free: 5.5 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_Start,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_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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 3.938 kB / 273.5 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.889e-06/1.124e-05, allocations: 2.312 kB / 273.5 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.005793/0.005805, allocations: 7.887 MB / 281.3 MB, free: 9.375 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.009746, allocations: 2.684 MB / 284 MB, free: 6.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000458/0.0102, allocations: 31.88 kB / 284.1 MB, free: 6.648 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009621/0.01117, allocations: 0.5362 MB / 284.6 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007307/0.0119, allocations: 0.5078 MB / 285.1 MB, free: 5.598 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.01225, allocations: 255.6 kB / 285.3 MB, free: 5.348 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.01334, allocations: 1.536 MB / 286.9 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.01376, allocations: 387.2 kB / 287.3 MB, free: 3.398 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008054/0.01457, allocations: 0.869 MB / 288.1 MB, free: 2.527 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005628/0.01513, allocations: 482.6 kB / 288.6 MB, free: 2.055 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.01525, allocations: 136 kB / 288.7 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.01545, allocations: 171.9 kB / 288.9 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.01559, allocations: 290.9 kB / 289.2 MB, free: 1.469 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002862/0.01587, allocations: 454.9 kB / 289.6 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007315/0.0166, allocations: 0.9262 MB / 290.6 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.01661, allocations: 0 / 290.6 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.01661, allocations: 0 / 290.6 MB, free: 96 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.01662, allocations: 0 / 290.6 MB, free: 96 kB / 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.1311/0.1477, allocations: 1.357 MB / 291.9 MB, free: 25.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.1478, allocations: 10.66 kB / 291.9 MB, free: 25.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005987/0.1484, allocations: 237.4 kB / 292.2 MB, free: 25.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008652/0.1492, allocations: 0.5265 MB / 292.7 MB, free: 24.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/0.1493, allocations: 73.12 kB / 292.8 MB, free: 24.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.1494, allocations: 97.42 kB / 292.9 MB, free: 24.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009384/0.1503, allocations: 0.7661 MB / 293.6 MB, free: 24.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.982e-05/0.1504, allocations: 9.703 kB / 293.6 MB, free: 24.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.577e-05/0.1504, allocations: 41.41 kB / 293.7 MB, free: 24.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.36e-05/0.1504, allocations: 24.25 kB / 293.7 MB, free: 24.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004643/0.1509, allocations: 248.6 kB / 293.9 MB, free: 24.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.1543, allocations: 2.944 MB / 296.9 MB, free: 23.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.1547, allocations: 231.3 kB / 297.1 MB, free: 23.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.155, allocations: 172 kB / 297.3 MB, free: 23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.155, allocations: 8.016 kB / 297.3 MB, free: 23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.155, allocations: 37.98 kB / 297.3 MB, free: 22.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.364e-06/0.155, allocations: 0 / 297.3 MB, free: 22.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001139/0.1561, allocations: 0.7429 MB / 298.1 MB, free: 22.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.857e-05/0.1562, allocations: 84.7 kB / 298.1 MB, free: 22.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005258/0.1567, allocations: 0.6591 MB / 298.8 MB, free: 22.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.1567, allocations: 31.64 kB / 298.8 MB, free: 22.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.1569, allocations: 0.501 MB / 299.3 MB, free: 22.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.1569, allocations: 164.1 kB / 299.5 MB, free: 21.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.157, allocations: 134.3 kB / 299.6 MB, free: 21.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.908e-05/0.1571, allocations: 389.3 kB / 300 MB, free: 21.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-05/0.1572, allocations: 59.84 kB / 300.1 MB, free: 21.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.1573, allocations: 388.8 kB / 300.4 MB, free: 21.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.1576, allocations: 499.8 kB / 300.9 MB, free: 20.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1576, allocations: 7.844 kB / 300.9 MB, free: 20.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.0004879/0.1581, allocations: 491.2 kB / 301.4 MB, free: 20.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1581, allocations: 9.562 kB / 301.4 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.1581, allocations: 10.5 kB / 301.4 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/0.1583, allocations: 77.98 kB / 301.5 MB, free: 20.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.1586, allocations: 151.3 kB / 301.7 MB, free: 20.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008271/0.1594, allocations: 2.596 MB / 304.3 MB, free: 18.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.1596, allocations: 32.75 kB / 304.3 MB, free: 18.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.1596, allocations: 33.94 kB / 304.3 MB, free: 18.38 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.0001192/0.1597, allocations: 156.1 kB / 304.5 MB, free: 18.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.885e-05/0.1598, allocations: 71.66 kB / 304.5 MB, free: 18.24 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002928/0.1601, allocations: 295.6 kB / 304.8 MB, free: 18.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.1601, allocations: 8.125 kB / 304.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.1601, allocations: 1.375 kB / 304.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.1601, allocations: 5.484 kB / 304.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007798/0.1609, allocations: 0.757 MB / 305.6 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1609, allocations: 6.656 kB / 305.6 MB, free: 17.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.1611, allocations: 63.94 kB / 305.7 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001083/0.1612, allocations: 55.88 kB / 305.7 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.1612, allocations: 17.09 kB / 305.7 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006918/0.1619, allocations: 2.586 MB / 308.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1619, allocations: 1.375 kB / 308.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003497/0.1622, allocations: 478.7 kB / 308.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.1623, allocations: 74.62 kB / 308.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.1624, allocations: 11.88 kB / 308.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.1625, allocations: 25.5 kB / 308.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.869e-05/0.1626, allocations: 30.61 kB / 308.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1626, allocations: 11.34 kB / 309 MB, free: 14.94 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002265/0.1628, allocations: 316.8 kB / 309.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1628, allocations: 0 / 309.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004572/0.1633, allocations: 203.9 kB / 309.5 MB, free: 14.88 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.0001143/0.1634, allocations: 105 kB / 309.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003531/0.1637, allocations: 0.5381 MB / 310.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/0.1638, allocations: 12.28 kB / 310.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001824/0.1639, allocations: 371 kB / 310.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.1645, allocations: 200.4 kB / 310.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.166, allocations: 1.573 MB / 312.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.136e-05/0.1661, allocations: 177.5 kB / 312.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.1663, allocations: 100.3 kB / 312.5 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.1665, allocations: 225.9 kB / 312.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1665, allocations: 0 / 312.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of Templates: time 0.01188/0.1784, allocations: 10.86 MB / 323.6 MB, free: 2.359 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9213437330909073]