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.001072/0.001072, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001227/0.001227, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.296/1.296, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 49.89 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 49.44 MB / 350.1 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00972/0.1173, allocations: 8.159 MB / 358.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005124/0.1225, allocations: 2.699 MB / 360.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009928/0.1235, allocations: 27.88 kB / 360.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.1252, allocations: 0.5317 MB / 361.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001412/0.1266, allocations: 436.5 kB / 361.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008199/0.1274, allocations: 358.5 kB / 362.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.1293, allocations: 1.499 MB / 363.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008156/0.1301, allocations: 0.6087 MB / 364.4 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006705/0.1308, allocations: 0.5407 MB / 364.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006143/0.1314, allocations: 0.6104 MB / 365.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.1316, allocations: 136 kB / 365.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003378/0.1319, allocations: 188 kB / 365.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.1321, allocations: 282.9 kB / 366.1 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005359/0.1327, allocations: 0.6647 MB / 366.8 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001528/0.1342, allocations: 1.69 MB / 368.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1342, allocations: 0 / 368.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1342, allocations: 0 / 368.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.1343, allocations: 0 / 368.5 MB, free: 1.91 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.002296/0.1366, allocations: 1.515 MB / 370 MB, free: 348 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1366, allocations: 8.031 kB / 370 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005807/0.1372, allocations: 191.2 kB / 370.2 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1495/0.2867, allocations: 0.7716 MB / 370.9 MB, free: 25.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.01e-05/0.2868, allocations: 76.72 kB / 371 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.2869, allocations: 102.7 kB / 371.1 MB, free: 25.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.2887, allocations: 0.9489 MB / 372.1 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.2888, allocations: 6.969 kB / 372.1 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.472e-05/0.2888, allocations: 41.72 kB / 372.1 MB, free: 24.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/0.2889, allocations: 28.33 kB / 372.1 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.29, allocations: 0.6363 MB / 372.8 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004714/0.2948, allocations: 4.116 MB / 376.9 MB, free: 21.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009772/0.2958, allocations: 432 kB / 377.3 MB, free: 21.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/0.296, allocations: 165.8 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.2961, allocations: 4.781 kB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.2961, allocations: 38.02 kB / 377.5 MB, free: 21.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.2961, allocations: 4 kB / 377.5 MB, free: 21.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002182/0.2983, allocations: 1.313 MB / 378.8 MB, free: 20.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.2984, allocations: 119.3 kB / 378.9 MB, free: 20.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.2995, allocations: 0.8937 MB / 379.8 MB, free: 20.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.2995, allocations: 33.2 kB / 379.9 MB, free: 20.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.2999, allocations: 0.5885 MB / 380.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.863e-05/0.2999, allocations: 147.4 kB / 380.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.3001, allocations: 138.5 kB / 380.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.006e-05/0.3002, allocations: 337.6 kB / 381.1 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003217/0.3005, allocations: 175.7 kB / 381.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.301, allocations: 493.4 kB / 381.7 MB, free: 18.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007168/0.3017, allocations: 0.6821 MB / 382.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3017, allocations: 7.062 kB / 382.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001161/0.3029, allocations: 0.7454 MB / 383.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3029, allocations: 11.05 kB / 383.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.3029, allocations: 13.53 kB / 383.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.3031, allocations: 38.64 kB / 383.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005602/0.3037, allocations: 170.3 kB / 383.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007126/0.3044, allocations: 1.392 MB / 384.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.3049, allocations: 43.78 kB / 384.8 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.305, allocations: 36.91 kB / 384.9 MB, free: 16.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004855/0.3055, allocations: 350.8 kB / 385.2 MB, free: 16.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003908/0.3059, allocations: 481 kB / 385.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006679/0.3065, allocations: 0.6598 MB / 386.3 MB, free: 15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.109e-06/0.3066, allocations: 3.031 kB / 386.3 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001049/0.3076, allocations: 0.7216 MB / 387.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3076, allocations: 12.75 kB / 387.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.3077, allocations: 11.03 kB / 387.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.574e-05/0.3078, allocations: 39.34 kB / 387.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.3083, allocations: 166.9 kB / 387.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007306/0.309, allocations: 1.386 MB / 388.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.3096, allocations: 37.47 kB / 388.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/0.3096, allocations: 32.41 kB / 388.7 MB, free: 13.2 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.0001687/0.3098, allocations: 231.3 kB / 389 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.3099, allocations: 91.73 kB / 389 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008442/0.3108, allocations: 438.2 kB / 389.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3108, allocations: 3.125 kB / 389.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3108, allocations: 5.188 kB / 389.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3108, allocations: 6.203 kB / 389.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.3129, allocations: 1.375 MB / 390.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3129, allocations: 1.969 kB / 390.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.3132, allocations: 81.95 kB / 390.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.39e-05/0.3133, allocations: 23.83 kB / 391 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.3134, allocations: 12.81 kB / 391 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006017/0.314, allocations: 1.375 MB / 392.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.314, allocations: 2.406 kB / 392.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.315, allocations: 0.7132 MB / 393.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.3152, allocations: 207.3 kB / 393.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.3153, allocations: 9.188 kB / 393.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003842/0.3157, allocations: 23.52 kB / 393.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.763e-05/0.3158, allocations: 32.09 kB / 393.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.3158, allocations: 13.56 kB / 393.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007655/0.3166, allocations: 0.6074 MB / 394 MB, free: 9.605 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3166, allocations: 0 / 394 MB, free: 9.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001117/0.3177, allocations: 351.4 kB / 394.3 MB, free: 9.578 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.0001624/0.3179, allocations: 127.7 kB / 394.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.3193, allocations: 0.9867 MB / 395.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3194, allocations: 1.594 kB / 395.4 MB, free: 8.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.3197, allocations: 284.2 kB / 395.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.3209, allocations: 248.5 kB / 395.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.3234, allocations: 1.835 MB / 397.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.3239, allocations: 1.025 MB / 398.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005134/0.3244, allocations: 123.6 kB / 398.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.3245, allocations: 56.56 kB / 399 MB, free: 6.535 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3245, allocations: 4 kB / 399 MB, free: 6.531 MB / 302.1 MB Notification: Performance of Templates: time 0.01796/0.3425, allocations: 10.63 MB / 409.6 MB, free: 12.95 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/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