Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.001015/0.001015, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.001019/0.001019, allocations: 169.8 kB / 25.33 MB, free: 9.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9412/0.9412, allocations: 158.6 MB / 187.2 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 251.1 MB, free: 3.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.687e-05/2.923e-05, allocations: 6.312 kB / 251.1 MB, free: 3.59 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009432/0.009462, allocations: 8.066 MB / 259.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005266/0.01473, allocations: 2.704 MB / 261.8 MB, free: 8.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008729/0.0156, allocations: 31.81 kB / 261.9 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.01706, allocations: 0.5121 MB / 262.4 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001066/0.01813, allocations: 492.1 kB / 262.9 MB, free: 7.734 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006959/0.01882, allocations: 367.4 kB / 263.2 MB, free: 7.375 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.02041, allocations: 1.557 MB / 264.8 MB, free: 5.809 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006659/0.02107, allocations: 396 kB / 265.2 MB, free: 5.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001069/0.02214, allocations: 0.865 MB / 266 MB, free: 4.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009482/0.02309, allocations: 474.5 kB / 266.5 MB, free: 4.066 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.02328, allocations: 140 kB / 266.6 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003073/0.02358, allocations: 179.9 kB / 266.8 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.02378, allocations: 294.8 kB / 267.1 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004233/0.0242, allocations: 454.9 kB / 267.5 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001241/0.02544, allocations: 0.9533 MB / 268.5 MB, free: 2.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.02544, allocations: 4 kB / 268.5 MB, free: 2.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.02545, allocations: 0 / 268.5 MB, free: 2.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.94e-05/0.02547, allocations: 3.938 kB / 268.5 MB, free: 2.055 MB / 250.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.002254/0.02772, allocations: 1.569 MB / 270.1 MB, free: 456 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.02777, allocations: 15.98 kB / 270.1 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005923/0.02836, allocations: 272 kB / 270.3 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.02954, allocations: 0.7473 MB / 271.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.611e-05/0.0296, allocations: 78.36 kB / 271.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.02974, allocations: 104.3 kB / 271.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.03094, allocations: 0.8366 MB / 272.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/0.03097, allocations: 4 kB / 272.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.828e-05/0.03104, allocations: 43.98 kB / 272.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.03107, allocations: 24 kB / 272.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007241/0.03179, allocations: 355.6 kB / 272.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004437/0.03623, allocations: 3.947 MB / 276.5 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000589/0.03682, allocations: 275.8 kB / 276.7 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.03697, allocations: 88.27 kB / 276.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.037, allocations: 8 kB / 276.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.03703, allocations: 45.14 kB / 276.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.864e-06/0.03704, allocations: 0 / 276.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001563/0.0386, allocations: 0.9199 MB / 277.8 MB, free: 8.324 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.03865, allocations: 110.8 kB / 277.9 MB, free: 8.191 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008927/0.03955, allocations: 0.8232 MB / 278.7 MB, free: 7.355 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.03957, allocations: 33.7 kB / 278.8 MB, free: 7.316 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003961/0.03997, allocations: 0.6698 MB / 279.4 MB, free: 6.637 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.04007, allocations: 158.7 kB / 279.6 MB, free: 6.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.04024, allocations: 144.2 kB / 279.7 MB, free: 6.332 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.0404, allocations: 0.5004 MB / 280.2 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.04058, allocations: 95.62 kB / 280.3 MB, free: 5.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007079/0.04129, allocations: 0.5897 MB / 280.9 MB, free: 4.922 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006375/0.04192, allocations: 0.6565 MB / 281.6 MB, free: 4.066 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.04193, allocations: 4 kB / 281.6 MB, free: 4.062 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000883/0.04281, allocations: 0.6212 MB / 282.2 MB, free: 3.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.04284, allocations: 11.98 kB / 282.2 MB, free: 3.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.04285, allocations: 12 kB / 282.2 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001498/0.043, allocations: 35.62 kB / 282.3 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004208/0.04342, allocations: 164.1 kB / 282.4 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009725/0.04439, allocations: 1.747 MB / 284.2 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003499/0.04474, allocations: 31.95 kB / 284.2 MB, free: 1.305 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-05/0.04478, allocations: 40 kB / 284.2 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002916/0.04507, allocations: 220.8 kB / 284.4 MB, free: 1.047 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004346/0.04551, allocations: 0.5859 MB / 285 MB, free: 248 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006531/0.04616, allocations: 0.6646 MB / 285.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.222e-06/0.04617, allocations: 4 kB / 285.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0008371/0.04701, allocations: 0.6132 MB / 286.3 MB, free: 14.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.04702, allocations: 8 kB / 286.3 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.04703, allocations: 12 kB / 286.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.572e-05/0.04712, allocations: 44.42 kB / 286.4 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/0.04751, allocations: 155.8 kB / 286.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.04861, allocations: 1.755 MB / 288.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.04895, allocations: 32 kB / 288.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/0.04899, allocations: 35.98 kB / 288.3 MB, free: 12.58 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.0001813/0.04917, allocations: 323.9 kB / 288.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.0493, allocations: 115.3 kB / 288.8 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004956/0.04979, allocations: 313.1 kB / 289.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.0498, allocations: 7.984 kB / 289.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.0498, allocations: 0 / 289.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.04981, allocations: 0 / 289.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.05123, allocations: 1.115 MB / 290.2 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.05124, allocations: 4 kB / 290.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000247/0.05148, allocations: 71.91 kB / 290.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.991e-05/0.05155, allocations: 27.61 kB / 290.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.05157, allocations: 8 kB / 290.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000775/0.05235, allocations: 1.732 MB / 292 MB, free: 8.664 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.05235, allocations: 7.938 kB / 292.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006511/0.053, allocations: 0.5969 MB / 292.7 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.05321, allocations: 119.4 kB / 292.8 MB, free: 7.887 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.765e-05/0.05328, allocations: 12.06 kB / 292.8 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.05352, allocations: 24.08 kB / 292.8 MB, free: 7.852 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.05359, allocations: 31.89 kB / 292.8 MB, free: 7.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.05361, allocations: 15.98 kB / 292.9 MB, free: 7.805 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005412/0.05415, allocations: 0.4989 MB / 293.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.05415, allocations: 0 / 293.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009944/0.05514, allocations: 348 kB / 293.7 MB, free: 6.973 MB / 282.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.0002059/0.05535, allocations: 127.1 kB / 293.8 MB, free: 6.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.05673, allocations: 0.8956 MB / 294.7 MB, free: 5.906 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.05673, allocations: 448 / 294.7 MB, free: 5.906 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.05698, allocations: 297.2 kB / 295 MB, free: 5.594 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008604/0.05784, allocations: 228.1 kB / 295.2 MB, free: 5.375 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.06067, allocations: 1.711 MB / 296.9 MB, free: 3.59 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.06082, allocations: 175.5 kB / 297.1 MB, free: 3.398 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003808/0.0612, allocations: 118.9 kB / 297.2 MB, free: 3.277 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.06132, allocations: 56.5 kB / 297.3 MB, free: 3.223 MB / 282.7 MB Notification: Performance of SimCode: time 8.81e-07/0.06132, allocations: 0 / 297.3 MB, free: 3.223 MB / 282.7 MB Notification: Performance of Templates: time 0.1274/0.1887, allocations: 10.6 MB / 307.9 MB, free: 51.17 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.3538898788392544]