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.001046/0.001046, allocations: 113 kB / 17.68 MB, free: 5.473 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.001009/0.001009, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009743/0.0009745, allocations: 51.67 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09875, allocations: 49.43 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00887/0.1077, allocations: 8.166 MB / 359.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004464/0.1122, allocations: 2.703 MB / 362.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007721/0.113, allocations: 27.94 kB / 362.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.1144, allocations: 0.52 MB / 362.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001102/0.1155, allocations: 440.5 kB / 363.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000702/0.1162, allocations: 362.5 kB / 363.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001514/0.1178, allocations: 1.507 MB / 365.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007913/0.1186, allocations: 0.6164 MB / 365.8 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006685/0.1192, allocations: 0.5446 MB / 366.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006071/0.1199, allocations: 0.6065 MB / 367 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001518/0.12, allocations: 140 kB / 367.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000292/0.1203, allocations: 180 kB / 367.3 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.1205, allocations: 290.9 kB / 367.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006338/0.1212, allocations: 0.6646 MB / 368.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.1227, allocations: 1.717 MB / 370 MB, free: 1.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1227, allocations: 0 / 370 MB, free: 1.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1227, allocations: 0 / 370 MB, free: 1.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.1227, allocations: 0 / 370 MB, free: 1.152 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.1611/0.2839, allocations: 1.507 MB / 371.5 MB, free: 25.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.2839, allocations: 10.56 kB / 371.5 MB, free: 25.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006934/0.2846, allocations: 184.6 kB / 371.6 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.286, allocations: 0.7935 MB / 372.4 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.862e-05/0.2861, allocations: 80.73 kB / 372.5 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.2863, allocations: 98.66 kB / 372.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/0.2881, allocations: 0.9494 MB / 373.6 MB, free: 24.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.2881, allocations: 10.3 kB / 373.6 MB, free: 24.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.016e-05/0.2882, allocations: 41.28 kB / 373.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.2882, allocations: 24.5 kB / 373.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.2895, allocations: 0.6375 MB / 374.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005104/0.2946, allocations: 4.08 MB / 378.4 MB, free: 21.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009632/0.2956, allocations: 425.3 kB / 378.8 MB, free: 21.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002716/0.2959, allocations: 168.8 kB / 378.9 MB, free: 21.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.889e-05/0.2959, allocations: 4.359 kB / 378.9 MB, free: 21.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.296, allocations: 38.28 kB / 379 MB, free: 21.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.523e-06/0.296, allocations: 3.781 kB / 379 MB, free: 21.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002283/0.2983, allocations: 1.318 MB / 380.3 MB, free: 20.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.2983, allocations: 111.6 kB / 380.4 MB, free: 20.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.2998, allocations: 0.8868 MB / 381.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.2999, allocations: 39.16 kB / 381.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004454/0.3004, allocations: 0.5895 MB / 381.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.3005, allocations: 147.6 kB / 382.1 MB, free: 19.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.3007, allocations: 138.8 kB / 382.2 MB, free: 19.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.909e-05/0.3008, allocations: 339.4 kB / 382.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.3012, allocations: 175 kB / 382.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.3016, allocations: 496.5 kB / 383.2 MB, free: 18.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/0.3024, allocations: 0.678 MB / 383.9 MB, free: 17.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.3024, allocations: 7.406 kB / 383.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001184/0.3036, allocations: 0.7489 MB / 384.6 MB, free: 17.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3036, allocations: 9.156 kB / 384.6 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.3037, allocations: 11.47 kB / 384.6 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.3038, allocations: 36.97 kB / 384.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/0.3044, allocations: 181.9 kB / 384.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007869/0.3052, allocations: 1.387 MB / 386.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006208/0.3058, allocations: 38.66 kB / 386.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.3059, allocations: 37.95 kB / 386.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005211/0.3064, allocations: 351 kB / 386.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003902/0.3068, allocations: 479.8 kB / 387.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006292/0.3075, allocations: 0.6601 MB / 387.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.139e-06/0.3075, allocations: 2.281 kB / 387.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001057/0.3085, allocations: 0.7264 MB / 388.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3086, allocations: 9.125 kB / 388.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.3086, allocations: 16.11 kB / 388.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.978e-05/0.3087, allocations: 34.45 kB / 388.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.3092, allocations: 162.7 kB / 388.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006417/0.3099, allocations: 1.388 MB / 390.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.3104, allocations: 34.19 kB / 390.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/0.3105, allocations: 33.44 kB / 390.2 MB, free: 12.78 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.0001576/0.3107, allocations: 233.8 kB / 390.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.3108, allocations: 99.16 kB / 390.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007932/0.3116, allocations: 429.2 kB / 390.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3116, allocations: 3.688 kB / 390.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3116, allocations: 2.234 kB / 390.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-06/0.3116, allocations: 1.406 kB / 390.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.3137, allocations: 1.38 MB / 392.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3137, allocations: 2.125 kB / 392.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003657/0.3141, allocations: 77.62 kB / 392.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.715e-05/0.3142, allocations: 23.47 kB / 392.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.3142, allocations: 13.92 kB / 392.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00074/0.315, allocations: 1.368 MB / 393.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.315, allocations: 5.094 kB / 393.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.316, allocations: 0.7207 MB / 394.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002433/0.3163, allocations: 205 kB / 394.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3164, allocations: 18.36 kB / 394.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/0.3168, allocations: 19.3 kB / 394.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.3169, allocations: 29.52 kB / 394.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.754e-05/0.3169, allocations: 30.22 kB / 394.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007084/0.3176, allocations: 0.6055 MB / 395.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3176, allocations: 0 / 395.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001287/0.3189, allocations: 346.3 kB / 395.8 MB, free: 9.094 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.0001714/0.3191, allocations: 121.2 kB / 395.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.3204, allocations: 0.9786 MB / 396.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3204, allocations: 1.375 kB / 396.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003349/0.3208, allocations: 286.9 kB / 397.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009704/0.3218, allocations: 239.6 kB / 397.4 MB, free: 8.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.3241, allocations: 1.814 MB / 399.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.3245, allocations: 1.024 MB / 400.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003811/0.3249, allocations: 122.5 kB / 400.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.3251, allocations: 58.69 kB / 400.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3251, allocations: 0 / 400.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of Templates: time 0.0156/0.3407, allocations: 10.63 MB / 411 MB, free: 12.05 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 -s gbode -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