Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002943/0.002943, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3659, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01497/0.3809, allocations: 11.76 MB / 420.5 MB, free: 5.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00738/0.3883, allocations: 3.254 MB / 423.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00176/0.3902, allocations: 39.88 kB / 423.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002086/0.3923, allocations: 0.6479 MB / 424.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002374/0.3947, allocations: 0.6665 MB / 425.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.3959, allocations: 403.5 kB / 425.5 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003422/0.3993, allocations: 2.242 MB / 427.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.4011, allocations: 0.9928 MB / 428.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001603/0.4027, allocations: 0.8443 MB / 429.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001589/0.4043, allocations: 0.9061 MB / 430.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003908/0.4047, allocations: 223.9 kB / 430.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005874/0.4053, allocations: 252 kB / 431 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003823/0.4057, allocations: 438.4 kB / 431.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.4071, allocations: 1.011 MB / 432.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003794/0.411, allocations: 2.693 MB / 435.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.411, allocations: 0 / 435.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.411, allocations: 0 / 435.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.249e-05/0.4111, allocations: 0 / 435.1 MB, free: 7.055 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004341/0.4154, allocations: 2.109 MB / 437.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.4155, allocations: 15.97 kB / 437.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003129/0.4158, allocations: 220.1 kB / 437.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.4169, allocations: 267.6 kB / 437.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002234/0.4191, allocations: 1.053 MB / 438.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.4192, allocations: 115.2 kB / 438.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.4195, allocations: 171.8 kB / 439 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00284/0.4223, allocations: 1.48 MB / 440.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.909e-05/0.4224, allocations: 7.984 kB / 440.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/0.4226, allocations: 67.94 kB / 440.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.353e-05/0.4226, allocations: 44 kB / 440.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.4247, allocations: 0.9707 MB / 441.6 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01028/0.4349, allocations: 6.541 MB / 448.2 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008721/0.4359, allocations: 408.1 kB / 448.6 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004472/0.4363, allocations: 222.1 kB / 448.8 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.4364, allocations: 8.438 kB / 448.8 MB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005551/0.4369, allocations: 268.8 kB / 449 MB, free: 8.539 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.035e-06/0.437, allocations: 0 / 449 MB, free: 8.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003793/0.4408, allocations: 1.788 MB / 450.8 MB, free: 6.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.4409, allocations: 162.8 kB / 451 MB, free: 6.465 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/0.4429, allocations: 1.273 MB / 452.3 MB, free: 5.176 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.53e-05/0.443, allocations: 37.7 kB / 452.3 MB, free: 5.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009074/0.4439, allocations: 0.8972 MB / 453.2 MB, free: 4.227 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002279/0.4441, allocations: 218.2 kB / 453.4 MB, free: 4.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003431/0.4445, allocations: 218.8 kB / 453.6 MB, free: 3.793 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002056/0.4447, allocations: 353.9 kB / 454 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006055/0.4453, allocations: 234.5 kB / 454.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.4463, allocations: 0.7995 MB / 455 MB, free: 2.133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.4481, allocations: 1.118 MB / 456.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.4481, allocations: 4 kB / 456.1 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002172/0.4502, allocations: 1.178 MB / 457.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.438e-05/0.4504, allocations: 37.7 kB / 457.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.4505, allocations: 23.75 kB / 457.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.4508, allocations: 65.69 kB / 457.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008072/0.4516, allocations: 275.8 kB / 457.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.4541, allocations: 2.781 MB / 460.5 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.4551, allocations: 63.94 kB / 460.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.398e-05/0.4552, allocations: 60 kB / 460.6 MB, free: 11.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007276/0.456, allocations: 373.3 kB / 461 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.4562, allocations: 143 kB / 461.1 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.4573, allocations: 0.545 MB / 461.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.4573, allocations: 8 kB / 461.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4573, allocations: 0 / 461.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.4573, allocations: 3.984 kB / 461.6 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.4604, allocations: 1.866 MB / 463.5 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.646e-05/0.4604, allocations: 4.469 kB / 463.5 MB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005139/0.461, allocations: 103.9 kB / 463.6 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.4611, allocations: 45.69 kB / 463.7 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/0.4612, allocations: 12 kB / 463.7 MB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/0.4635, allocations: 2.75 MB / 466.4 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.4635, allocations: 7.938 kB / 466.4 MB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.4651, allocations: 0.9365 MB / 467.4 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006062/0.4657, allocations: 256.2 kB / 467.6 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.4658, allocations: 16 kB / 467.6 MB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005284/0.4664, allocations: 31.97 kB / 467.7 MB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.4665, allocations: 55.81 kB / 467.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.4666, allocations: 20 kB / 467.7 MB, free: 4.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001376/0.4679, allocations: 0.8461 MB / 468.6 MB, free: 3.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4679, allocations: 0 / 468.6 MB, free: 3.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001168/0.4691, allocations: 304 kB / 468.9 MB, free: 3.133 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (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.002048/0.4712, allocations: 1.516 MB / 470.4 MB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.4729, allocations: 0.9279 MB / 471.3 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.473, allocations: 1.938 kB / 471.3 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000703/0.4737, allocations: 473.7 kB / 471.8 MB, free: 92 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/0.4754, allocations: 339.2 kB / 472.1 MB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/0.4936, allocations: 10.93 MB / 483.1 MB, free: 4.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009675/0.4946, allocations: 1.178 MB / 484.2 MB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007937/0.4954, allocations: 167.3 kB / 484.4 MB, free: 2.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007769/0.4962, allocations: 0.5735 MB / 485 MB, free: 2.066 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4962, allocations: 3.938 kB / 485 MB, free: 2.062 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08083/0.577, allocations: 27.8 MB / 0.5008 GB, free: 6.598 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.43, allocations: 3.938 kB / 0.5008 GB, free: 6.594 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches