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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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=40000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009658/0.0009658, allocations: 107 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008736/0.0008738, allocations: 43.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2219, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006583/0.2285, allocations: 8.118 MB / 407.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00352/0.2321, allocations: 2.662 MB / 410.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006887/0.2328, allocations: 31.88 kB / 410.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.234, allocations: 473.4 kB / 410.8 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007792/0.2347, allocations: 377.3 kB / 411.1 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005454/0.2353, allocations: 327.7 kB / 411.4 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009602/0.2363, allocations: 1.441 MB / 412.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005896/0.2369, allocations: 0.533 MB / 413.4 MB, free: 19.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004487/0.2373, allocations: 0.5016 MB / 413.9 MB, free: 18.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003916/0.2377, allocations: 0.5636 MB / 414.5 MB, free: 18.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.2378, allocations: 84 kB / 414.6 MB, free: 18.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002969/0.2382, allocations: 124 kB / 414.7 MB, free: 18.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.2383, allocations: 234.9 kB / 414.9 MB, free: 17.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003816/0.2387, allocations: 0.6216 MB / 415.5 MB, free: 17.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009662/0.2397, allocations: 1.635 MB / 417.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2397, allocations: 0 / 417.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.2397, allocations: 3.938 kB / 417.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.2397, allocations: 0 / 417.2 MB, free: 15.6 MB / 298.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.002182/0.2419, allocations: 1.507 MB / 418.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.242, allocations: 16.03 kB / 418.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005697/0.2425, allocations: 187.2 kB / 418.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.2436, allocations: 0.7705 MB / 419.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.401e-05/0.2436, allocations: 74.12 kB / 419.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.2438, allocations: 99.91 kB / 419.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.2451, allocations: 0.9575 MB / 420.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.578e-05/0.2451, allocations: 8 kB / 420.8 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.642e-05/0.2452, allocations: 40 kB / 420.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.2452, allocations: 24 kB / 420.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.2463, allocations: 0.6363 MB / 421.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005008/0.2513, allocations: 4.127 MB / 425.6 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008916/0.2522, allocations: 432.9 kB / 426 MB, free: 6.367 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.2525, allocations: 157.4 kB / 426.2 MB, free: 6.211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.2525, allocations: 7.984 kB / 426.2 MB, free: 6.203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.2526, allocations: 42.5 kB / 426.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.836e-06/0.2526, allocations: 0 / 426.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.002138/0.2547, allocations: 1.317 MB / 427.6 MB, free: 4.762 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.2548, allocations: 110.8 kB / 427.7 MB, free: 4.629 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009313/0.2557, allocations: 0.8936 MB / 428.6 MB, free: 3.711 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.2557, allocations: 33.7 kB / 428.6 MB, free: 3.672 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.256, allocations: 0.5876 MB / 429.2 MB, free: 3.074 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.224e-05/0.2561, allocations: 145.9 kB / 429.3 MB, free: 2.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.2562, allocations: 138.5 kB / 429.5 MB, free: 2.789 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.409e-05/0.2563, allocations: 330 kB / 429.8 MB, free: 2.461 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/0.2566, allocations: 180.7 kB / 430 MB, free: 2.281 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.257, allocations: 493.7 kB / 430.4 MB, free: 1.652 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006537/0.2576, allocations: 0.6904 MB / 431.1 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2576, allocations: 4 kB / 431.1 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009658/0.2586, allocations: 0.7465 MB / 431.9 MB, free: 56 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2586, allocations: 12.84 kB / 431.9 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.2587, allocations: 8 kB / 431.9 MB, free: 36 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001569/0.2588, allocations: 40.84 kB / 431.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005438/0.2594, allocations: 167.7 kB / 432.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.2604, allocations: 1.292 MB / 433.4 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005383/0.2609, allocations: 39.89 kB / 433.4 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.416e-05/0.261, allocations: 35.98 kB / 433.5 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005341/0.2615, allocations: 354.1 kB / 433.8 MB, free: 13.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004691/0.262, allocations: 485.7 kB / 434.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008002/0.2628, allocations: 0.6676 MB / 435 MB, free: 12.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.829e-06/0.2628, allocations: 4 kB / 435 MB, free: 12.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001084/0.2639, allocations: 0.7158 MB / 435.7 MB, free: 11.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.264, allocations: 8 kB / 435.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.264, allocations: 12 kB / 435.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001108/0.2641, allocations: 36.84 kB / 435.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000512/0.2646, allocations: 163.7 kB / 435.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008886/0.2655, allocations: 1.292 MB / 437.2 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005316/0.2661, allocations: 35.89 kB / 437.2 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.2661, allocations: 40.16 kB / 437.3 MB, free: 10.09 MB / 314.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.0002198/0.2664, allocations: 232 kB / 437.5 MB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.2665, allocations: 90.88 kB / 437.6 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008683/0.2674, allocations: 443.1 kB / 438 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2674, allocations: 4 kB / 438 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2674, allocations: 4 kB / 438 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.2674, allocations: 7.984 kB / 438 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002111/0.2695, allocations: 1.38 MB / 439.4 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.2695, allocations: 4 kB / 439.4 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004062/0.27, allocations: 75.89 kB / 439.5 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.2701, allocations: 20.86 kB / 439.5 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.2701, allocations: 19.92 kB / 439.5 MB, free: 7.727 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008641/0.271, allocations: 1.268 MB / 440.8 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.271, allocations: 4.031 kB / 440.8 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006854/0.2779, allocations: 4.873 MB / 445.7 MB, free: 1.137 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002836/0.2782, allocations: 200 kB / 445.9 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.2783, allocations: 12 kB / 445.9 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.2788, allocations: 28.12 kB / 445.9 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.637e-05/0.2788, allocations: 23.97 kB / 445.9 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.599e-05/0.2789, allocations: 20.06 kB / 445.9 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008427/0.2797, allocations: 0.6093 MB / 446.5 MB, free: 224 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.453e-06/0.2797, allocations: 0 / 446.5 MB, free: 224 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.001623/0.2814, allocations: 0.5039 MB / 447.1 MB, free: 15.71 MB / 330.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.0002655/0.2816, allocations: 131.1 kB / 447.2 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.2834, allocations: 0.9591 MB / 448.1 MB, free: 14.6 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.2834, allocations: 0 / 448.1 MB, free: 14.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004341/0.2839, allocations: 287.1 kB / 448.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.2853, allocations: 222.5 kB / 448.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.289, allocations: 2.64 MB / 451.3 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006455/0.2897, allocations: 1.025 MB / 452.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006296/0.2903, allocations: 131.3 kB / 452.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.2905, allocations: 59.44 kB / 452.5 MB, free: 10.13 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.2905, allocations: 0 / 452.5 MB, free: 10.13 MB / 330.7 MB Notification: Performance of Templates: time 0.02086/0.3114, allocations: 11.37 MB / 463.9 MB, free: 14.88 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches