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.001257/0.001257, allocations: 113.5 kB / 17.07 MB, free: 5.969 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.001335/0.001336, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 52.06 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2911, allocations: 49.44 MB / 400.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01353/0.3047, allocations: 12.15 MB / 412.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006839/0.3116, allocations: 3.28 MB / 415.7 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001909/0.3136, allocations: 39.94 kB / 415.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002458/0.3161, allocations: 0.6829 MB / 416.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002958/0.3191, allocations: 0.795 MB / 417.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.3203, allocations: 395.5 kB / 417.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003488/0.3238, allocations: 2.42 MB / 420 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.3257, allocations: 0.993 MB / 421 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002075/0.3278, allocations: 0.9105 MB / 421.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002282/0.3301, allocations: 0.9801 MB / 422.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007339/0.3308, allocations: 228 kB / 423.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00102/0.3319, allocations: 268 kB / 423.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006004/0.3325, allocations: 466.2 kB / 423.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.335, allocations: 1.073 MB / 424.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004052/0.339, allocations: 2.84 MB / 427.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.3391, allocations: 0 / 427.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3391, allocations: 0 / 427.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001181/0.3392, allocations: 0 / 427.7 MB, free: 13.14 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.005251/0.3444, allocations: 2.213 MB / 430 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3445, allocations: 12.03 kB / 430 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004121/0.3449, allocations: 216.1 kB / 430.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.346, allocations: 291.5 kB / 430.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.3482, allocations: 1.139 MB / 431.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.563e-05/0.3483, allocations: 115.2 kB / 431.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002681/0.3486, allocations: 160 kB / 431.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002904/0.3515, allocations: 1.504 MB / 433.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-05/0.3516, allocations: 11.94 kB / 433.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.3517, allocations: 60 kB / 433.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.1e-05/0.3517, allocations: 43.94 kB / 433.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002131/0.3539, allocations: 1.053 MB / 434.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008726/0.3626, allocations: 6.251 MB / 440.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.3642, allocations: 0.6133 MB / 441.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009264/0.3652, allocations: 462.4 kB / 441.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.393e-05/0.3653, allocations: 12.56 kB / 441.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.3653, allocations: 39.12 kB / 441.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.444e-06/0.3653, allocations: 0 / 441.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005192/0.3705, allocations: 2.391 MB / 444.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/0.3706, allocations: 115.5 kB / 444.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/0.3727, allocations: 1.298 MB / 445.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.3727, allocations: 37.7 kB / 445.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006233/0.3734, allocations: 0.8827 MB / 446.6 MB, free: 9.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/0.3736, allocations: 281.6 kB / 446.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003312/0.3739, allocations: 202.8 kB / 447.1 MB, free: 9.113 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.374, allocations: 349.9 kB / 447.4 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006133/0.3747, allocations: 286.4 kB / 447.7 MB, free: 8.484 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008909/0.3756, allocations: 0.7304 MB / 448.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.3771, allocations: 1.088 MB / 449.5 MB, free: 6.242 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.3772, allocations: 8 kB / 449.5 MB, free: 6.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002505/0.3797, allocations: 1.268 MB / 450.8 MB, free: 4.949 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.3797, allocations: 8 kB / 450.8 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/0.3797, allocations: 16 kB / 450.8 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005423/0.3803, allocations: 143.1 kB / 451 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008243/0.3811, allocations: 255.5 kB / 451.2 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004075/0.3852, allocations: 4.642 MB / 455.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.3863, allocations: 71.92 kB / 455.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.3864, allocations: 52 kB / 456 MB, free: 15.34 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.0006632/0.3871, allocations: 349.4 kB / 456.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.3874, allocations: 147.1 kB / 456.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.3893, allocations: 0.8334 MB / 457.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.3894, allocations: 15.92 kB / 457.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3894, allocations: 4 kB / 457.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.3894, allocations: 0 / 457.3 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004254/0.3937, allocations: 2.327 MB / 459.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.3937, allocations: 4 kB / 459.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005792/0.3943, allocations: 132.3 kB / 459.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004663/0.3947, allocations: 134.4 kB / 459.9 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.323e-05/0.3948, allocations: 23.98 kB / 459.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00426/0.3991, allocations: 4.787 MB / 464.7 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.3991, allocations: 7.938 kB / 464.7 MB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.4016, allocations: 1.301 MB / 466 MB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005951/0.4022, allocations: 288 kB / 466.3 MB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.4025, allocations: 20 kB / 466.3 MB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000738/0.4032, allocations: 35.97 kB / 466.4 MB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.4034, allocations: 68.36 kB / 466.4 MB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.4034, allocations: 27.98 kB / 466.5 MB, free: 4.191 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001367/0.4048, allocations: 0.8742 MB / 467.3 MB, free: 3.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.673e-06/0.4048, allocations: 0 / 467.3 MB, free: 3.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001343/0.4062, allocations: 331.9 kB / 467.7 MB, free: 2.992 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.002813/0.409, allocations: 1.898 MB / 469.6 MB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.411, allocations: 1.123 MB / 470.7 MB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.4111, allocations: 5.938 kB / 470.7 MB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.4122, allocations: 0.7146 MB / 471.4 MB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.4143, allocations: 364.7 kB / 471.8 MB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02015/0.4344, allocations: 11.72 MB / 483.5 MB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.4355, allocations: 1.214 MB / 484.7 MB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007209/0.4363, allocations: 171.6 kB / 484.9 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008294/0.4371, allocations: 0.6125 MB / 485.5 MB, free: 284 kB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4371, allocations: 0 / 485.5 MB, free: 284 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07368/0.5108, allocations: 31.17 MB / 0.5045 GB, free: 1.496 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.02/14.54, allocations: 14.86 kB / 0.5046 GB, free: 1.484 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