Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",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.00129/0.001291, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.00123/0.00123, allocations: 200 kB / 18.01 MB, free: 5.066 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.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 47.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2731, allocations: 49.44 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01413/0.2873, allocations: 12.15 MB / 412.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006565/0.2939, allocations: 3.276 MB / 415.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001666/0.2956, allocations: 35.94 kB / 415.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002234/0.2979, allocations: 0.6633 MB / 416.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002658/0.3006, allocations: 0.7364 MB / 417.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.3018, allocations: 399.5 kB / 417.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003928/0.3057, allocations: 2.412 MB / 419.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001605/0.3073, allocations: 0.993 MB / 420.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.3088, allocations: 0.9027 MB / 421.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001373/0.3102, allocations: 0.9801 MB / 422.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000387/0.3106, allocations: 232 kB / 423 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006265/0.3113, allocations: 264 kB / 423.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003971/0.3117, allocations: 466.3 kB / 423.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00127/0.313, allocations: 1.069 MB / 424.8 MB, free: 116 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003627/0.3166, allocations: 2.845 MB / 427.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3166, allocations: 4 kB / 427.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3166, allocations: 0 / 427.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.122e-05/0.3167, allocations: 0 / 427.6 MB, free: 13.25 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004699/0.3214, allocations: 2.201 MB / 429.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.3215, allocations: 12.03 kB / 429.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002893/0.3218, allocations: 228.1 kB / 430.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009295/0.3227, allocations: 287.5 kB / 430.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.3248, allocations: 1.135 MB / 431.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.3249, allocations: 115.2 kB / 431.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002408/0.3251, allocations: 163.9 kB / 431.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002792/0.3279, allocations: 1.504 MB / 433.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.904e-05/0.328, allocations: 15.89 kB / 433.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001282/0.3282, allocations: 64 kB / 433.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.631e-05/0.3282, allocations: 36 kB / 433.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.3303, allocations: 1.041 MB / 434.4 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008851/0.3392, allocations: 6.271 MB / 440.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.3408, allocations: 0.6054 MB / 441.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009781/0.3418, allocations: 462.2 kB / 441.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.88e-05/0.3419, allocations: 12.62 kB / 441.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.3419, allocations: 39.12 kB / 441.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.324e-06/0.3419, allocations: 0 / 441.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005304/0.3473, allocations: 2.395 MB / 444.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.003e-05/0.3474, allocations: 111.5 kB / 444.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/0.3493, allocations: 1.31 MB / 445.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.821e-05/0.3494, allocations: 37.7 kB / 445.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007176/0.3501, allocations: 0.8671 MB / 446.5 MB, free: 9.719 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.3503, allocations: 277.7 kB / 446.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002973/0.3506, allocations: 206.8 kB / 447 MB, free: 9.238 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3508, allocations: 345.9 kB / 447.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000613/0.3514, allocations: 286.5 kB / 447.6 MB, free: 8.613 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009835/0.3524, allocations: 0.7343 MB / 448.4 MB, free: 7.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.3541, allocations: 1.092 MB / 449.4 MB, free: 6.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.3542, allocations: 4 kB / 449.4 MB, free: 6.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002572/0.3567, allocations: 1.272 MB / 450.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.3568, allocations: 12 kB / 450.7 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/0.3568, allocations: 19.98 kB / 450.8 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005879/0.3574, allocations: 130.8 kB / 450.9 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009174/0.3583, allocations: 255.6 kB / 451.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004458/0.3628, allocations: 4.642 MB / 455.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.3639, allocations: 59.86 kB / 455.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.3641, allocations: 55.98 kB / 455.9 MB, free: 15.48 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007035/0.3648, allocations: 361.5 kB / 456.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.365, allocations: 147.1 kB / 456.4 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.367, allocations: 0.8295 MB / 457.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.367, allocations: 7.938 kB / 457.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.367, allocations: 4 kB / 457.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.367, allocations: 3.984 kB / 457.2 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.3714, allocations: 2.331 MB / 459.6 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.3714, allocations: 8 kB / 459.6 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005972/0.372, allocations: 127.8 kB / 459.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005002/0.3725, allocations: 142.8 kB / 459.8 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.394e-05/0.3726, allocations: 27.94 kB / 459.9 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004854/0.3775, allocations: 4.779 MB / 464.6 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.3775, allocations: 4 kB / 464.6 MB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002615/0.3801, allocations: 1.301 MB / 465.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006308/0.3808, allocations: 296 kB / 466.2 MB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.3809, allocations: 16 kB / 466.2 MB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006393/0.3816, allocations: 43.97 kB / 466.3 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.3817, allocations: 60.36 kB / 466.3 MB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.244e-05/0.3818, allocations: 24 kB / 466.4 MB, free: 4.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001392/0.3832, allocations: 0.8781 MB / 467.2 MB, free: 3.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.354e-06/0.3832, allocations: 0 / 467.2 MB, free: 3.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001265/0.3845, allocations: 335.9 kB / 467.6 MB, free: 3.109 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002937/0.3874, allocations: 1.905 MB / 469.5 MB, free: 1.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002195/0.3896, allocations: 1.117 MB / 470.6 MB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3897, allocations: 4 kB / 470.6 MB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.3908, allocations: 0.7067 MB / 471.3 MB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.3927, allocations: 379.4 kB / 471.7 MB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/0.4128, allocations: 11.71 MB / 483.4 MB, free: 2.434 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009452/0.4138, allocations: 1.214 MB / 484.6 MB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006958/0.4145, allocations: 179.6 kB / 484.8 MB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008214/0.4153, allocations: 0.6086 MB / 485.4 MB, free: 412 kB / 398.1 MB Notification: Performance of SimCode: time 1.482e-06/0.4153, allocations: 0 / 485.4 MB, free: 412 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08055/0.4959, allocations: 31.16 MB / 0.5044 GB, free: 1.633 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/15.04, allocations: 18.59 kB / 0.5045 GB, free: 1.621 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches