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.001254/0.00126, allocations: 114 kB / 17.06 MB, free: 6.016 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.00114/0.00114, allocations: 191 kB / 18 MB, free: 5.098 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2831, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009452/0.2926, allocations: 7.132 MB / 407.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00461/0.2973, allocations: 2.344 MB / 409.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.2984, allocations: 23.94 kB / 409.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00177/0.3002, allocations: 0.5087 MB / 410.2 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0015/0.3017, allocations: 417 kB / 410.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006168/0.3023, allocations: 211.7 kB / 410.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001709/0.3041, allocations: 1.198 MB / 412.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008263/0.3049, allocations: 0.5037 MB / 412.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007881/0.3057, allocations: 466.1 kB / 413 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007842/0.3065, allocations: 493.8 kB / 413.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002487/0.3068, allocations: 116 kB / 413.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004845/0.3073, allocations: 160 kB / 413.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002309/0.3075, allocations: 231.1 kB / 414 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007753/0.3083, allocations: 0.5404 MB / 414.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001601/0.3099, allocations: 1.44 MB / 416 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3099, allocations: 4 kB / 416 MB, free: 9 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.3099, allocations: 0 / 416 MB, free: 9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.3099, allocations: 3.938 kB / 416 MB, free: 8.996 MB / 334.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.001952/0.3119, allocations: 1.273 MB / 417.3 MB, free: 7.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.312, allocations: 8.031 kB / 417.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001291/0.3121, allocations: 131 kB / 417.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000468/0.3126, allocations: 148.2 kB / 417.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009835/0.3136, allocations: 0.65 MB / 418.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.37e-05/0.3136, allocations: 62.31 kB / 418.2 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3137, allocations: 88.08 kB / 418.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.3149, allocations: 0.7754 MB / 419.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.315, allocations: 8 kB / 419.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.315, allocations: 28 kB / 419.1 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.3151, allocations: 20 kB / 419.2 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009381/0.316, allocations: 0.5231 MB / 419.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003743/0.3198, allocations: 3.381 MB / 423.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004645/0.3203, allocations: 232.9 kB / 423.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.3205, allocations: 112.8 kB / 423.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.3205, allocations: 8 kB / 423.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.3206, allocations: 30.56 kB / 423.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/0.3206, allocations: 0 / 423.4 MB, free: 1.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001925/0.3225, allocations: 1.069 MB / 424.5 MB, free: 40 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.3226, allocations: 81.34 kB / 424.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008596/0.3234, allocations: 0.7349 MB / 425.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.3235, allocations: 29.7 kB / 425.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000311/0.3238, allocations: 0.5034 MB / 425.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.96e-05/0.3239, allocations: 115.1 kB / 426 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.324, allocations: 114.2 kB / 426.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3242, allocations: 378.8 kB / 426.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000256/0.3244, allocations: 125.2 kB / 426.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.3249, allocations: 418.2 kB / 427 MB, free: 13.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007037/0.3256, allocations: 0.5791 MB / 427.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3256, allocations: 4 kB / 427.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009719/0.3266, allocations: 0.6151 MB / 428.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3266, allocations: 8 kB / 428.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.3266, allocations: 12 kB / 428.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/0.3268, allocations: 33.38 kB / 428.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004296/0.3272, allocations: 147.7 kB / 428.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009721/0.3282, allocations: 1.39 MB / 429.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004319/0.3286, allocations: 35.97 kB / 429.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.3287, allocations: 32 kB / 429.8 MB, free: 10.24 MB / 350.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.0002754/0.329, allocations: 233.6 kB / 430.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.326e-05/0.3291, allocations: 79.58 kB / 430.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006019/0.3297, allocations: 325.3 kB / 430.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3297, allocations: 0 / 430.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3297, allocations: 4 kB / 430.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3297, allocations: 0 / 430.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.3312, allocations: 1.096 MB / 431.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.3312, allocations: 8.156 kB / 431.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.3315, allocations: 63.91 kB / 431.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.057e-05/0.3316, allocations: 20.84 kB / 431.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3316, allocations: 8 kB / 431.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008445/0.3324, allocations: 1.367 MB / 433 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3325, allocations: 4.031 kB / 433 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007976/0.3333, allocations: 0.5653 MB / 433.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.3335, allocations: 176.6 kB / 433.8 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.971e-05/0.3336, allocations: 12 kB / 433.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.3339, allocations: 19.97 kB / 433.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/0.334, allocations: 27.86 kB / 433.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.334, allocations: 8 kB / 433.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006074/0.3346, allocations: 0.5069 MB / 434.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3346, allocations: 0 / 434.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006369/0.3352, allocations: 156 kB / 434.5 MB, free: 5.277 MB / 350.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.001169/0.3364, allocations: 1.125 MB / 435.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008167/0.3373, allocations: 466.8 kB / 436.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3373, allocations: 0 / 436.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003542/0.3376, allocations: 246.9 kB / 436.3 MB, free: 3.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008695/0.3385, allocations: 175 kB / 436.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007934/0.3465, allocations: 6.274 MB / 442.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.347, allocations: 0.9449 MB / 443.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003276/0.3473, allocations: 82.05 kB / 443.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003327/0.3476, allocations: 303.3 kB / 444.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3477, allocations: 0 / 444.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04258/0.3902, allocations: 15.44 MB / 459.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.06, allocations: 8 kB / 459.5 MB, free: 11.98 MB / 382.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