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.001322/0.001322, allocations: 111.4 kB / 17.29 MB, free: 6.219 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.001152/0.001152, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 47.17 kB / 300.8 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09492/0.09614, allocations: 49.45 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009494/0.1057, allocations: 8.123 MB / 358.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00481/0.1105, allocations: 2.664 MB / 361 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001157/0.1117, allocations: 27.94 kB / 361.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001781/0.1136, allocations: 477.4 kB / 361.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001514/0.1151, allocations: 369.3 kB / 361.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009476/0.1161, allocations: 321.9 kB / 362.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002024/0.1181, allocations: 1.514 MB / 363.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.1194, allocations: 0.6126 MB / 364.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.1204, allocations: 0.5446 MB / 364.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009313/0.1213, allocations: 0.6065 MB / 365.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002884/0.1216, allocations: 136 kB / 365.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005309/0.1222, allocations: 176 kB / 365.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.1224, allocations: 290.9 kB / 366.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008659/0.1233, allocations: 0.6686 MB / 366.7 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.1249, allocations: 1.376 MB / 368.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1249, allocations: 0 / 368.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1249, allocations: 4 kB / 368.1 MB, free: 2.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.352e-05/0.125, allocations: 0 / 368.1 MB, free: 2.785 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.00312/0.1281, allocations: 1.511 MB / 369.6 MB, free: 1.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.1282, allocations: 8.031 kB / 369.6 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007187/0.1289, allocations: 195.2 kB / 369.8 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.1302, allocations: 0.7744 MB / 370.6 MB, free: 208 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/0.1303, allocations: 78.12 kB / 370.7 MB, free: 132 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.1305, allocations: 103.9 kB / 370.8 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1395/0.2699, allocations: 0.9461 MB / 371.7 MB, free: 25.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.287e-05/0.27, allocations: 6.594 kB / 371.7 MB, free: 25.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-05/0.2701, allocations: 40.5 kB / 371.8 MB, free: 25.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.075e-05/0.2702, allocations: 25.06 kB / 371.8 MB, free: 25.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.2715, allocations: 0.6361 MB / 372.4 MB, free: 25.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005151/0.2766, allocations: 4.117 MB / 376.5 MB, free: 22.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009372/0.2776, allocations: 430.9 kB / 377 MB, free: 22.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002762/0.2779, allocations: 159.3 kB / 377.1 MB, free: 22.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.086e-05/0.2779, allocations: 9.219 kB / 377.1 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.278, allocations: 36.66 kB / 377.2 MB, free: 22.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.475e-06/0.278, allocations: 0 / 377.2 MB, free: 22.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00221/0.2802, allocations: 1.329 MB / 378.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.2802, allocations: 109.1 kB / 378.6 MB, free: 21.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.2814, allocations: 0.8943 MB / 379.5 MB, free: 20.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.2814, allocations: 35.11 kB / 379.5 MB, free: 20.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003177/0.2817, allocations: 0.586 MB / 380.1 MB, free: 20.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.57e-05/0.2818, allocations: 150.7 kB / 380.3 MB, free: 20.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.282, allocations: 138.1 kB / 380.4 MB, free: 20.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.158e-05/0.2821, allocations: 333.7 kB / 380.7 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003134/0.2824, allocations: 175.9 kB / 380.9 MB, free: 19.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.2828, allocations: 497.8 kB / 381.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007199/0.2835, allocations: 0.6834 MB / 382.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2836, allocations: 3.188 kB / 382.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001156/0.2847, allocations: 0.7536 MB / 382.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.2848, allocations: 9.078 kB / 382.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.2848, allocations: 11.19 kB / 382.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.2849, allocations: 38.42 kB / 382.9 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005621/0.2855, allocations: 168.1 kB / 383 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007155/0.2862, allocations: 1.391 MB / 384.4 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005739/0.2868, allocations: 40.25 kB / 384.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/0.2869, allocations: 36.97 kB / 384.5 MB, free: 16.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005246/0.2874, allocations: 349.7 kB / 384.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003674/0.2878, allocations: 479.5 kB / 385.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006677/0.2885, allocations: 0.6629 MB / 386 MB, free: 15.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.414e-06/0.2885, allocations: 3.281 kB / 386 MB, free: 15.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001199/0.2897, allocations: 0.721 MB / 386.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.2897, allocations: 10.97 kB / 386.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.2897, allocations: 9.688 kB / 386.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001025/0.2899, allocations: 39.66 kB / 386.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005417/0.2904, allocations: 174.3 kB / 386.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006376/0.291, allocations: 1.378 MB / 388.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000561/0.2916, allocations: 36.97 kB / 388.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-05/0.2917, allocations: 38.41 kB / 388.4 MB, free: 13.81 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.0001618/0.2918, allocations: 239.3 kB / 388.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.292, allocations: 90.94 kB / 388.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008282/0.2928, allocations: 430 kB / 389.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2928, allocations: 4 kB / 389.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2928, allocations: 2.672 kB / 389.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.2928, allocations: 7 kB / 389.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/0.2948, allocations: 1.383 MB / 390.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.2948, allocations: 2.75 kB / 390.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003632/0.2952, allocations: 73.61 kB / 390.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.59e-05/0.2953, allocations: 23.14 kB / 390.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.2953, allocations: 13.48 kB / 390.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006066/0.2959, allocations: 1.364 MB / 392 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.748e-06/0.296, allocations: 11.12 kB / 392 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.297, allocations: 0.7149 MB / 392.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.2972, allocations: 206.9 kB / 392.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.2974, allocations: 17.61 kB / 392.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.2978, allocations: 18.81 kB / 393 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.2979, allocations: 35.58 kB / 393 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.2979, allocations: 14.12 kB / 393 MB, free: 10.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007805/0.2987, allocations: 0.6064 MB / 393.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2987, allocations: 0 / 393.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001267/0.3, allocations: 352.1 kB / 394 MB, free: 10.19 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.0001761/0.3001, allocations: 129.6 kB / 394.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.3017, allocations: 0.9808 MB / 395.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3017, allocations: 3.938 kB / 395.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003405/0.302, allocations: 285.7 kB / 395.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.3032, allocations: 235.8 kB / 395.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002966/0.3062, allocations: 2.284 MB / 397.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.3067, allocations: 1.026 MB / 398.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.3069, allocations: 62.94 kB / 399 MB, free: 6.879 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3069, allocations: 0 / 399 MB, free: 6.879 MB / 302.1 MB Notification: Performance of Templates: time 0.01885/0.3257, allocations: 16.79 MB / 415.7 MB, free: 7.395 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