Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.0009442/0.0009442, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.000928/0.000928, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9257/0.9257, allocations: 173.4 MB / 202.2 MB, free: 8.281 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.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.28e-05/1.391e-05, allocations: 7.016 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006453/0.006467, allocations: 7.879 MB / 277.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003347/0.009814, allocations: 2.638 MB / 279.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004644/0.01028, allocations: 35.81 kB / 279.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009292/0.01121, allocations: 0.5237 MB / 280.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006344/0.01184, allocations: 484.2 kB / 280.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006729/0.01251, allocations: 359.4 kB / 281.1 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.01357, allocations: 1.561 MB / 282.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.01403, allocations: 400 kB / 283.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007304/0.01476, allocations: 0.8573 MB / 283.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.01518, allocations: 470.6 kB / 284.4 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.01529, allocations: 136 kB / 284.5 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.01549, allocations: 179.9 kB / 284.7 MB, free: 10.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.01562, allocations: 290.8 kB / 285 MB, free: 9.934 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002971/0.01592, allocations: 454.8 kB / 285.4 MB, free: 9.488 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007392/0.01666, allocations: 0.9494 MB / 286.4 MB, free: 8.535 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.01666, allocations: 0 / 286.4 MB, free: 8.535 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.01666, allocations: 0 / 286.4 MB, free: 8.535 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.01667, allocations: 0 / 286.4 MB, free: 8.535 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001354/0.01802, allocations: 1.581 MB / 287.9 MB, free: 6.914 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.793e-05/0.01805, allocations: 12.03 kB / 288 MB, free: 6.902 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006218/0.01867, allocations: 272 kB / 288.2 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006438/0.01932, allocations: 0.7045 MB / 288.9 MB, free: 5.898 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.01936, allocations: 74.38 kB / 289 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.681e-05/0.01944, allocations: 104.3 kB / 289.1 MB, free: 5.723 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/0.0201, allocations: 0.7739 MB / 289.9 MB, free: 4.879 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.02012, allocations: 19.88 kB / 289.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.74e-05/0.02017, allocations: 40 kB / 289.9 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.02019, allocations: 24 kB / 290 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.02051, allocations: 281.6 kB / 290.2 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002841/0.02335, allocations: 3.966 MB / 294.2 MB, free: 344 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/0.02369, allocations: 258.4 kB / 294.5 MB, free: 76 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.02381, allocations: 84.25 kB / 294.5 MB, free: 15.98 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.02383, allocations: 11.75 kB / 294.5 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.02387, allocations: 41.33 kB / 294.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.644e-06/0.02387, allocations: 0 / 294.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.001141/0.02501, allocations: 0.7372 MB / 295.3 MB, free: 15.15 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.02504, allocations: 106.8 kB / 295.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000522/0.02557, allocations: 0.7915 MB / 296.2 MB, free: 14.21 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.02559, allocations: 37.7 kB / 296.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.0259, allocations: 0.6736 MB / 296.9 MB, free: 13.49 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.874e-05/0.02598, allocations: 154.7 kB / 297.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.0261, allocations: 148.2 kB / 297.2 MB, free: 13.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.02623, allocations: 0.5081 MB / 297.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.36e-05/0.02631, allocations: 75.62 kB / 297.8 MB, free: 12.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.02661, allocations: 0.5741 MB / 298.4 MB, free: 11.79 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.027, allocations: 0.6293 MB / 299 MB, free: 10.96 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.027, allocations: 4 kB / 299 MB, free: 10.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005384/0.02754, allocations: 0.5782 MB / 299.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.02755, allocations: 8 kB / 299.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.02757, allocations: 12 kB / 299.6 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.533e-05/0.02766, allocations: 35.61 kB / 299.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00031/0.02797, allocations: 175.7 kB / 299.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007011/0.02867, allocations: 1.729 MB / 301.5 MB, free: 8.301 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.02893, allocations: 35.94 kB / 301.6 MB, free: 8.266 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.02896, allocations: 28 kB / 301.6 MB, free: 8.238 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000197/0.02916, allocations: 204.8 kB / 301.8 MB, free: 8.031 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006117/0.02977, allocations: 0.5819 MB / 302.4 MB, free: 7.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003885/0.03016, allocations: 0.6258 MB / 303 MB, free: 6.406 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.327e-06/0.03016, allocations: 4 kB / 303 MB, free: 6.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0005226/0.03068, allocations: 0.5741 MB / 303.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.796e-06/0.03069, allocations: 8 kB / 303.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.0307, allocations: 12.09 kB / 303.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.495e-05/0.03076, allocations: 32.27 kB / 303.6 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.03104, allocations: 171.7 kB / 303.8 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000595/0.03163, allocations: 1.718 MB / 305.5 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.03188, allocations: 43.88 kB / 305.6 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.03191, allocations: 32 kB / 305.6 MB, free: 3.691 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0001229/0.03203, allocations: 319.9 kB / 305.9 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.65e-05/0.03211, allocations: 99.44 kB / 306 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003067/0.03242, allocations: 293.2 kB / 306.3 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.03242, allocations: 4 kB / 306.3 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.03243, allocations: 4 kB / 306.3 MB, free: 2.961 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.03243, allocations: 3.984 kB / 306.3 MB, free: 2.957 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008779/0.03331, allocations: 0.9405 MB / 307.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.03331, allocations: 8 kB / 307.3 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.0335, allocations: 79.83 kB / 307.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.221e-05/0.03355, allocations: 19.69 kB / 307.4 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.03357, allocations: 15.98 kB / 307.4 MB, free: 1.824 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008445/0.03441, allocations: 1.713 MB / 309.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.03442, allocations: 4 kB / 309.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004252/0.03484, allocations: 0.5654 MB / 309.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.03498, allocations: 119.3 kB / 309.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/0.03504, allocations: 23.92 kB / 309.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.03522, allocations: 12 kB / 309.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.03526, allocations: 39.94 kB / 309.8 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.03528, allocations: 12 kB / 309.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002951/0.03557, allocations: 462.8 kB / 310.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03557, allocations: 0 / 310.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006647/0.03624, allocations: 347.9 kB / 310.7 MB, free: 14.38 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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): 38 * 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.0001368/0.03637, allocations: 131.2 kB / 310.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006634/0.03704, allocations: 0.8445 MB / 311.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.03704, allocations: 320 / 311.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.0372, allocations: 285.2 kB / 311.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006124/0.03782, allocations: 246.9 kB / 312.1 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.03976, allocations: 1.706 MB / 313.9 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.03986, allocations: 171.6 kB / 314 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002733/0.04014, allocations: 118.9 kB / 314.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003392/0.04047, allocations: 282 kB / 314.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.04048, allocations: 0 / 314.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Templates: time 0.01437/0.05485, allocations: 11.71 MB / 326.1 MB, free: 14.98 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.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.0373650291003287]