Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 107.6 kB / 16.92 MB, free: 5.746 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.001906/0.001906, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.327/1.327, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 46.08 kB / 300.7 MB, free: 5.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08335/0.08439, allocations: 49.44 MB / 350.2 MB, free: 4.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008451/0.09288, allocations: 7.117 MB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003626/0.09653, allocations: 2.349 MB / 359.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006006/0.09715, allocations: 23.94 kB / 359.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.09857, allocations: 0.4892 MB / 360.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009166/0.0995, allocations: 381 kB / 360.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004192/0.09993, allocations: 207.7 kB / 360.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.1011, allocations: 1.19 MB / 361.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006775/0.1018, allocations: 0.5113 MB / 362.4 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005373/0.1024, allocations: 470.1 kB / 362.9 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00053/0.1029, allocations: 497.8 kB / 363.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.103, allocations: 112 kB / 363.5 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002925/0.1033, allocations: 156 kB / 363.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.1035, allocations: 231.1 kB / 363.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004822/0.104, allocations: 0.5404 MB / 364.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.1052, allocations: 1.413 MB / 365.8 MB, free: 4.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1052, allocations: 3.938 kB / 365.8 MB, free: 4.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1052, allocations: 0 / 365.8 MB, free: 4.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.524e-05/0.1053, allocations: 4 kB / 365.8 MB, free: 4.508 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00196/0.1072, allocations: 1.243 MB / 367.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1073, allocations: 12.03 kB / 367.1 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001392/0.1074, allocations: 127.1 kB / 367.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004818/0.1079, allocations: 139.6 kB / 367.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008712/0.1088, allocations: 0.6416 MB / 368 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.1088, allocations: 58.38 kB / 368 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1089, allocations: 88.03 kB / 368.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.1102, allocations: 0.7832 MB / 368.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.1102, allocations: 0 / 368.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.38e-05/0.1103, allocations: 32 kB / 368.9 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.1103, allocations: 24 kB / 369 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.1113, allocations: 0.5114 MB / 369.5 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1453/0.2567, allocations: 3.396 MB / 372.9 MB, free: 23.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/0.2572, allocations: 227.9 kB / 373.1 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002457/0.2574, allocations: 117.5 kB / 373.2 MB, free: 23.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.2575, allocations: 6.406 kB / 373.2 MB, free: 23.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.2575, allocations: 37.28 kB / 373.2 MB, free: 23.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.044e-06/0.2575, allocations: 0 / 373.2 MB, free: 23.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001946/0.2595, allocations: 1.031 MB / 374.3 MB, free: 23.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/0.2595, allocations: 84.91 kB / 374.4 MB, free: 22.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009813/0.2605, allocations: 0.7328 MB / 375.1 MB, free: 22.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.2605, allocations: 34.84 kB / 375.1 MB, free: 22.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/0.2608, allocations: 498.4 kB / 375.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.2609, allocations: 105.6 kB / 375.7 MB, free: 22.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.261, allocations: 112.9 kB / 375.8 MB, free: 22.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.528e-05/0.2611, allocations: 384 kB / 376.2 MB, free: 21.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.2614, allocations: 122.5 kB / 376.3 MB, free: 21.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003506/0.2617, allocations: 422.9 kB / 376.7 MB, free: 21.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006066/0.2624, allocations: 0.572 MB / 377.3 MB, free: 20.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.2624, allocations: 3.438 kB / 377.3 MB, free: 20.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000974/0.2633, allocations: 0.6052 MB / 377.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.2634, allocations: 10.28 kB / 377.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.2634, allocations: 13.72 kB / 377.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001392/0.2635, allocations: 38.03 kB / 378 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.264, allocations: 138.6 kB / 378.1 MB, free: 20.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006858/0.2647, allocations: 1.394 MB / 379.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/0.2651, allocations: 36.05 kB / 379.5 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.2652, allocations: 34.19 kB / 379.6 MB, free: 18.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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.0002304/0.2654, allocations: 242.1 kB / 379.8 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.877e-05/0.2655, allocations: 69.06 kB / 379.9 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006029/0.2661, allocations: 327.2 kB / 380.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2661, allocations: 2.75 kB / 380.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2662, allocations: 5.203 kB / 380.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2662, allocations: 1.922 kB / 380.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.2677, allocations: 1.109 MB / 381.3 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.2677, allocations: 1.406 kB / 381.3 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.268, allocations: 57.88 kB / 381.4 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-05/0.2681, allocations: 27.72 kB / 381.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.2681, allocations: 8.281 kB / 381.4 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000605/0.2687, allocations: 1.363 MB / 382.8 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2687, allocations: 6.156 kB / 382.8 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008189/0.2695, allocations: 0.5544 MB / 383.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.2698, allocations: 180 kB / 383.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/0.2699, allocations: 8.516 kB / 383.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.2702, allocations: 14.75 kB / 383.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.2703, allocations: 25.91 kB / 383.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.2703, allocations: 11.34 kB / 383.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006123/0.2709, allocations: 0.501 MB / 384.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2709, allocations: 4 kB / 384.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006143/0.2715, allocations: 162.7 kB / 384.2 MB, free: 15.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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.001022/0.2726, allocations: 1.124 MB / 385.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008254/0.2734, allocations: 478.9 kB / 385.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2734, allocations: 1.062 kB / 385.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003438/0.2738, allocations: 237.4 kB / 386.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009234/0.2747, allocations: 187.4 kB / 386.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007791/0.2825, allocations: 6.615 MB / 392.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005907/0.2831, allocations: 0.9407 MB / 393.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00042/0.2835, allocations: 89.31 kB / 393.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/0.2839, allocations: 300.1 kB / 394.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2839, allocations: 3.609 kB / 394.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03635/0.3203, allocations: 15.12 MB / 409.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.973/9.293, allocations: 11.62 kB / 409.3 MB, free: 13.51 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches