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.001707/0.001707, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.00202/0.00202, allocations: 193.4 kB / 18 MB, free: 5.172 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2842, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00905/0.2933, allocations: 7.136 MB / 407.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004264/0.2976, allocations: 2.348 MB / 409.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006962/0.2983, allocations: 19.94 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.2997, allocations: 0.4931 MB / 410.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009234/0.3006, allocations: 377 kB / 410.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004218/0.3011, allocations: 211.7 kB / 410.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.3025, allocations: 1.199 MB / 412 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007608/0.3033, allocations: 0.4959 MB / 412.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007536/0.3041, allocations: 462.1 kB / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006582/0.3048, allocations: 0.49 MB / 413.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.3049, allocations: 116 kB / 413.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003464/0.3053, allocations: 152 kB / 413.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002042/0.3055, allocations: 231.1 kB / 413.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005938/0.3061, allocations: 0.5443 MB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001724/0.3078, allocations: 1.436 MB / 415.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3078, allocations: 4 kB / 415.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3079, allocations: 0 / 415.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.442e-05/0.3079, allocations: 0 / 415.9 MB, free: 9.051 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.002128/0.31, allocations: 1.281 MB / 417.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3101, allocations: 8.031 kB / 417.2 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.3102, allocations: 123.1 kB / 417.3 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004986/0.3107, allocations: 148.2 kB / 417.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.3118, allocations: 0.6499 MB / 418.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.315e-05/0.3119, allocations: 62.38 kB / 418.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.312, allocations: 92.06 kB / 418.3 MB, free: 6.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.3134, allocations: 0.7754 MB / 419.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.3134, allocations: 0 / 419.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.676e-05/0.3135, allocations: 32 kB / 419.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.3135, allocations: 24 kB / 419.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.3146, allocations: 0.5231 MB / 419.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004267/0.3189, allocations: 3.369 MB / 423 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005285/0.3194, allocations: 234.6 kB / 423.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/0.3197, allocations: 116.8 kB / 423.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.3197, allocations: 0 / 423.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.3198, allocations: 46.48 kB / 423.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.242e-06/0.3198, allocations: 0 / 423.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002187/0.322, allocations: 1.061 MB / 424.5 MB, free: 92 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/0.3221, allocations: 85.33 kB / 424.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009835/0.323, allocations: 0.7349 MB / 425.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.3231, allocations: 41.64 kB / 425.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003759/0.3235, allocations: 0.5034 MB / 425.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.948e-05/0.3236, allocations: 103.1 kB / 425.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.3237, allocations: 114.2 kB / 426 MB, free: 14.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3239, allocations: 378.8 kB / 426.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.3242, allocations: 125.2 kB / 426.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.3247, allocations: 426.2 kB / 426.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008198/0.3255, allocations: 0.5675 MB / 427.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.3256, allocations: 4 kB / 427.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001111/0.3267, allocations: 0.6194 MB / 428.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.3267, allocations: 12.16 kB / 428.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.3267, allocations: 12 kB / 428.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.3269, allocations: 32.84 kB / 428.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.3274, allocations: 139.8 kB / 428.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.3286, allocations: 1.386 MB / 429.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004726/0.329, allocations: 27.98 kB / 429.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-05/0.3291, allocations: 32.09 kB / 429.8 MB, free: 10.3 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.0003444/0.3295, allocations: 237.5 kB / 430 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.3296, allocations: 79.48 kB / 430.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006756/0.3303, allocations: 321.3 kB / 430.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3303, allocations: 4 kB / 430.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.3303, allocations: 4 kB / 430.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.3303, allocations: 4.031 kB / 430.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001662/0.332, allocations: 1.1 MB / 431.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.332, allocations: 4 kB / 431.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.3323, allocations: 55.91 kB / 431.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.865e-05/0.3324, allocations: 24.84 kB / 431.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.3324, allocations: 11.94 kB / 431.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.3334, allocations: 1.371 MB / 433 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/0.3334, allocations: 12.11 kB / 433 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009247/0.3344, allocations: 0.5535 MB / 433.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.3346, allocations: 172.6 kB / 433.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.233e-05/0.3347, allocations: 11.98 kB / 433.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.335, allocations: 19.98 kB / 433.7 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.981e-05/0.3351, allocations: 31.91 kB / 433.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.3351, allocations: 8 kB / 433.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006812/0.3358, allocations: 0.4991 MB / 434.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3358, allocations: 0 / 434.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006667/0.3365, allocations: 160 kB / 434.4 MB, free: 5.336 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.001319/0.3378, allocations: 1.127 MB / 435.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009329/0.3388, allocations: 468.6 kB / 436 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.3388, allocations: 4.375 kB / 436 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003889/0.3392, allocations: 238.5 kB / 436.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009437/0.3401, allocations: 185.7 kB / 436.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008944/0.3491, allocations: 6.278 MB / 442.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006022/0.3497, allocations: 0.9409 MB / 443.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003332/0.3501, allocations: 86.02 kB / 443.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003753/0.3505, allocations: 299.3 kB / 444 MB, free: 11.21 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3505, allocations: 4 kB / 444 MB, free: 11.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04947/0.4, allocations: 15.42 MB / 459.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.54, allocations: 14.06 kB / 459.5 MB, free: 12.03 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