Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.001011/0.001011, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.0009098/0.0009098, allocations: 167.5 kB / 25.61 MB, free: 8.555 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.8484/0.8484, allocations: 177.1 MB / 206 MB, free: 4.504 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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.774e-05/1.939e-05, allocations: 2.312 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00816/0.00818, allocations: 6.986 MB / 281.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003798/0.01198, allocations: 2.311 MB / 283.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005475/0.01252, allocations: 23.94 kB / 283.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.01378, allocations: 484.7 kB / 284 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008596/0.01464, allocations: 424.7 kB / 284.4 MB, free: 10.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003944/0.01503, allocations: 211.7 kB / 284.6 MB, free: 9.965 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.01629, allocations: 1.245 MB / 285.8 MB, free: 8.715 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005671/0.01686, allocations: 328.4 kB / 286.2 MB, free: 8.367 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009781/0.01784, allocations: 0.7093 MB / 286.9 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005561/0.01839, allocations: 386.9 kB / 287.3 MB, free: 7.277 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.01855, allocations: 115.9 kB / 287.4 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002735/0.01882, allocations: 152 kB / 287.5 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.01898, allocations: 231.1 kB / 287.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003972/0.01938, allocations: 375.1 kB / 288.1 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.02041, allocations: 0.7666 MB / 288.9 MB, free: 5.652 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.02041, allocations: 0 / 288.9 MB, free: 5.652 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.02042, allocations: 3.984 kB / 288.9 MB, free: 5.648 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.02043, allocations: 4 kB / 288.9 MB, free: 5.645 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00181/0.02224, allocations: 1.301 MB / 290.2 MB, free: 4.305 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.02228, allocations: 16.03 kB / 290.2 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005162/0.02279, allocations: 212.2 kB / 290.4 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008356/0.02363, allocations: 0.5597 MB / 291 MB, free: 3.488 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.19e-05/0.02368, allocations: 66.38 kB / 291 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.02379, allocations: 80.31 kB / 291.1 MB, free: 3.348 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008884/0.02468, allocations: 0.6138 MB / 291.7 MB, free: 2.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.253e-05/0.02472, allocations: 12.08 kB / 291.7 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-05/0.02478, allocations: 39.94 kB / 291.8 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.0248, allocations: 23.98 kB / 291.8 MB, free: 2.605 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.02524, allocations: 221.7 kB / 292 MB, free: 2.391 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.02893, allocations: 3.266 MB / 295.3 MB, free: 14.92 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.02923, allocations: 153.2 kB / 295.4 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.619e-05/0.02932, allocations: 51.66 kB / 295.5 MB, free: 14.71 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.02934, allocations: 4 kB / 295.5 MB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.02937, allocations: 41.39 kB / 295.5 MB, free: 14.65 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 2.404e-06/0.02938, allocations: 0 / 295.5 MB, free: 14.65 MB / 282.7 MB Notification: Performance of matching and sorting (n=28): time 0.001134/0.03051, allocations: 0.5674 MB / 296.1 MB, free: 14.05 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.03055, allocations: 89.27 kB / 296.2 MB, free: 13.94 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007325/0.03129, allocations: 0.6668 MB / 296.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.03131, allocations: 33.69 kB / 296.9 MB, free: 13.22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003733/0.03169, allocations: 0.576 MB / 297.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.496e-05/0.03177, allocations: 115.1 kB / 297.6 MB, free: 12.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.03192, allocations: 123.9 kB / 297.7 MB, free: 12.39 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.03213, allocations: 0.5546 MB / 298.2 MB, free: 11.83 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.03223, allocations: 49.2 kB / 298.3 MB, free: 11.78 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003512/0.03259, allocations: 0.4913 MB / 298.8 MB, free: 11.1 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/0.0331, allocations: 0.5642 MB / 299.3 MB, free: 10.35 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.0331, allocations: 0 / 299.3 MB, free: 10.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007453/0.03385, allocations: 488.9 kB / 299.8 MB, free: 9.859 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.03387, allocations: 16.22 kB / 299.8 MB, free: 9.844 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.03389, allocations: 11.94 kB / 299.9 MB, free: 9.832 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001326/0.03402, allocations: 31.67 kB / 299.9 MB, free: 9.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003919/0.03441, allocations: 135.8 kB / 300 MB, free: 9.664 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009952/0.03541, allocations: 1.721 MB / 301.7 MB, free: 7.828 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003819/0.03579, allocations: 28.08 kB / 301.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.841e-05/0.03583, allocations: 31.98 kB / 301.8 MB, free: 7.77 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.03605, allocations: 204.2 kB / 302 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.03617, allocations: 79.53 kB / 302.1 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003611/0.03653, allocations: 215.7 kB / 302.3 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.03654, allocations: 4 kB / 302.3 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.03654, allocations: 0 / 302.3 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.03655, allocations: 7.984 kB / 302.3 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.03766, allocations: 0.7861 MB / 303.1 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.03766, allocations: 0 / 303.1 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.03788, allocations: 55.91 kB / 303.1 MB, free: 6.332 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.501e-05/0.03797, allocations: 15.91 kB / 303.2 MB, free: 6.312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.03799, allocations: 15.94 kB / 303.2 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008952/0.03888, allocations: 1.709 MB / 304.9 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.03889, allocations: 3.938 kB / 304.9 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005442/0.03943, allocations: 485.8 kB / 305.4 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.03962, allocations: 91.66 kB / 305.4 MB, free: 3.848 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.03969, allocations: 8 kB / 305.5 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.03995, allocations: 15.98 kB / 305.5 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.04001, allocations: 23.91 kB / 305.5 MB, free: 3.801 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.04003, allocations: 11.98 kB / 305.5 MB, free: 3.789 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004161/0.04044, allocations: 398.8 kB / 305.9 MB, free: 3.406 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04044, allocations: 3.938 kB / 305.9 MB, free: 3.402 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007193/0.04116, allocations: 156 kB / 306 MB, free: 3.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001857/0.04135, allocations: 123.1 kB / 306.2 MB, free: 3.121 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005674/0.04192, allocations: 414.6 kB / 306.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.04192, allocations: 0 / 306.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.04216, allocations: 254.9 kB / 306.8 MB, free: 2.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008393/0.043, allocations: 181.9 kB / 307 MB, free: 2.258 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002428/0.04543, allocations: 1.343 MB / 308.3 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.04556, allocations: 146.1 kB / 308.5 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003083/0.04587, allocations: 85.47 kB / 308.6 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003945/0.04627, allocations: 234.1 kB / 308.8 MB, free: 376 kB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.04627, allocations: 0 / 308.8 MB, free: 376 kB / 282.7 MB Notification: Performance of Templates: time 0.0173/0.06357, allocations: 8.819 MB / 317.6 MB, free: 7.734 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_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.7982593839988112]