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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 110 kB / 17.16 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002055/0.002055, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.567/2.567, allocations: 222.9 MB / 241.7 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 50.02 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1725, allocations: 49.45 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01885/0.1914, allocations: 8.127 MB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009785/0.2013, allocations: 2.672 MB / 360.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002338/0.2038, allocations: 31.88 kB / 360.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003443/0.2072, allocations: 469.4 kB / 361.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003308/0.2106, allocations: 377.3 kB / 361.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.2126, allocations: 315.7 kB / 362 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004076/0.2167, allocations: 1.425 MB / 363.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002121/0.2189, allocations: 0.5329 MB / 364 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001735/0.2207, allocations: 0.4899 MB / 364.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.2223, allocations: 0.5714 MB / 365.1 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005963/0.223, allocations: 84 kB / 365.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.224, allocations: 116 kB / 365.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005554/0.2246, allocations: 234.9 kB / 365.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001863/0.2265, allocations: 0.6177 MB / 366.1 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002734/0.2293, allocations: 1.36 MB / 367.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.242e-05/0.2293, allocations: 0 / 367.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2293, allocations: 0 / 367.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.363e-05/0.2294, allocations: 4 kB / 367.5 MB, free: 3.371 MB / 302.1 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.006373/0.2358, allocations: 1.503 MB / 369 MB, free: 1.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.594e-05/0.2359, allocations: 12.03 kB / 369 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.2374, allocations: 191.2 kB / 369.2 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002756/0.2402, allocations: 0.7744 MB / 369.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001245/0.2404, allocations: 74.12 kB / 370 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003738/0.2408, allocations: 99.91 kB / 370.1 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3175/0.5583, allocations: 0.959 MB / 371.1 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.5585, allocations: 2.922 kB / 371.1 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003176/0.5588, allocations: 41.75 kB / 371.1 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.643e-05/0.5589, allocations: 24.31 kB / 371.1 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003248/0.5622, allocations: 0.6335 MB / 371.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/0.5742, allocations: 4.122 MB / 375.9 MB, free: 22.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/0.5761, allocations: 427.7 kB / 376.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006247/0.5768, allocations: 163.6 kB / 376.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.8e-05/0.5769, allocations: 9.203 kB / 376.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.577, allocations: 36.38 kB / 376.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 4.739e-06/0.577, allocations: 0 / 376.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004845/0.5819, allocations: 1.317 MB / 377.8 MB, free: 21.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.582, allocations: 113.1 kB / 377.9 MB, free: 21.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003085/0.5851, allocations: 0.8903 MB / 378.8 MB, free: 21.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.566e-05/0.5852, allocations: 39.27 kB / 378.9 MB, free: 20.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008753/0.5861, allocations: 0.5902 MB / 379.5 MB, free: 20.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003006/0.5864, allocations: 142.3 kB / 379.6 MB, free: 20.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004606/0.5869, allocations: 142.5 kB / 379.7 MB, free: 20.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.5871, allocations: 333.6 kB / 380.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007472/0.5878, allocations: 171.7 kB / 380.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.5889, allocations: 0.4896 MB / 380.7 MB, free: 19.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.5907, allocations: 0.6802 MB / 381.4 MB, free: 18.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-05/0.5908, allocations: 6.625 kB / 381.4 MB, free: 18.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003118/0.5939, allocations: 0.7458 MB / 382.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.05e-05/0.594, allocations: 10.45 kB / 382.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.373e-05/0.5941, allocations: 9.906 kB / 382.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003384/0.5944, allocations: 39.55 kB / 382.2 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.5956, allocations: 175.8 kB / 382.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.597, allocations: 1.295 MB / 383.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.5985, allocations: 38.72 kB / 383.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.5986, allocations: 37.22 kB / 383.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001315/0.5999, allocations: 351.1 kB / 384.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008761/0.6008, allocations: 482.8 kB / 384.6 MB, free: 16.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001456/0.6023, allocations: 0.6593 MB / 385.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.001e-05/0.6023, allocations: 6.312 kB / 385.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.002691/0.605, allocations: 0.7231 MB / 385.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.6051, allocations: 9.375 kB / 386 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.945e-05/0.6052, allocations: 10.88 kB / 386 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002334/0.6054, allocations: 34.92 kB / 386 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.6065, allocations: 166.7 kB / 386.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.6078, allocations: 1.287 MB / 387.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.6092, allocations: 34.06 kB / 387.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.6094, allocations: 32.59 kB / 387.5 MB, free: 14.18 MB / 302.1 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.0004273/0.6098, allocations: 239.2 kB / 387.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000474/0.6103, allocations: 94.78 kB / 387.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.6121, allocations: 429.4 kB / 388.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.6122, allocations: 5.25 kB / 388.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.6122, allocations: 3.609 kB / 388.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.6122, allocations: 2.016 kB / 388.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004912/0.6171, allocations: 1.382 MB / 389.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.6172, allocations: 3.031 kB / 389.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007567/0.6179, allocations: 77.44 kB / 389.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/0.6182, allocations: 23.91 kB / 389.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.74e-05/0.6183, allocations: 15.12 kB / 389.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.6196, allocations: 1.272 MB / 391 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/0.6196, allocations: 10.11 kB / 391.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.622, allocations: 0.7152 MB / 391.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008488/0.6228, allocations: 205.4 kB / 392 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004446/0.6233, allocations: 13.45 kB / 392 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.6243, allocations: 22.27 kB / 392 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.6245, allocations: 30.72 kB / 392 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.6246, allocations: 18.56 kB / 392.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002202/0.6268, allocations: 0.6035 MB / 392.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6268, allocations: 0 / 392.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.003567/0.6304, allocations: 347.8 kB / 393 MB, free: 10.66 MB / 302.1 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.0004489/0.6309, allocations: 125.5 kB / 393.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003542/0.6344, allocations: 0.9725 MB / 394.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/0.6345, allocations: 5.156 kB / 394.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007652/0.6353, allocations: 283.8 kB / 394.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003073/0.6384, allocations: 223.5 kB / 394.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006764/0.6452, allocations: 2.286 MB / 396.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.6463, allocations: 1.018 MB / 397.9 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004984/0.6469, allocations: 65.98 kB / 398 MB, free: 7.441 MB / 302.1 MB Notification: Performance of SimCode: time 1.243e-06/0.6469, allocations: 4 kB / 398 MB, free: 7.438 MB / 302.1 MB Notification: Performance of Templates: time 0.0441/0.691, allocations: 16.78 MB / 414.7 MB, free: 8.551 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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