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.00175/0.00175, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3059, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01298/0.3189, allocations: 11.76 MB / 420.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006196/0.3252, allocations: 3.246 MB / 423.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/0.3268, allocations: 39.88 kB / 423.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002021/0.3289, allocations: 0.6791 MB / 424.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.3312, allocations: 0.7212 MB / 425.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008738/0.3321, allocations: 399.5 kB / 425.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002583/0.3347, allocations: 2.25 MB / 427.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.336, allocations: 0.9889 MB / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.3372, allocations: 0.856 MB / 429.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.3382, allocations: 0.9139 MB / 430.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002608/0.3385, allocations: 216 kB / 430.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004722/0.339, allocations: 256 kB / 431.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003399/0.3393, allocations: 434.4 kB / 431.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009467/0.3403, allocations: 1.011 MB / 432.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003405/0.3437, allocations: 2.693 MB / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3437, allocations: 0 / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3437, allocations: 0 / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.582e-05/0.3438, allocations: 0 / 435.2 MB, free: 6.957 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.004023/0.3478, allocations: 2.117 MB / 437.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.3479, allocations: 8.031 kB / 437.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002486/0.3481, allocations: 224 kB / 437.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007518/0.3489, allocations: 263.6 kB / 437.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/0.3505, allocations: 1.049 MB / 438.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.747e-05/0.3506, allocations: 119.2 kB / 439 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002043/0.3508, allocations: 163.9 kB / 439.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.3532, allocations: 1.49 MB / 440.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.593e-05/0.3533, allocations: 4 kB / 440.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.3534, allocations: 64 kB / 440.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.108e-05/0.3534, allocations: 40 kB / 440.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.3552, allocations: 0.9785 MB / 441.7 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007782/0.363, allocations: 6.545 MB / 448.2 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008265/0.3638, allocations: 408 kB / 448.6 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004195/0.3643, allocations: 222.1 kB / 448.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.3643, allocations: 4.438 kB / 448.9 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005139/0.3648, allocations: 264.8 kB / 449.1 MB, free: 8.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.3649, allocations: 0 / 449.1 MB, free: 8.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003224/0.3681, allocations: 1.796 MB / 450.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.3682, allocations: 166.8 kB / 451.1 MB, free: 6.363 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.3699, allocations: 1.277 MB / 452.4 MB, free: 5.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.3699, allocations: 37.7 kB / 452.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006626/0.3706, allocations: 0.8895 MB / 453.3 MB, free: 4.129 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.3708, allocations: 214.2 kB / 453.5 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.371, allocations: 226.7 kB / 453.7 MB, free: 3.691 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3712, allocations: 353.9 kB / 454.1 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004457/0.3717, allocations: 230.5 kB / 454.3 MB, free: 3.113 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008113/0.3725, allocations: 0.8034 MB / 455.1 MB, free: 2.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.3738, allocations: 1.118 MB / 456.2 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.3738, allocations: 8 kB / 456.2 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001951/0.3758, allocations: 1.166 MB / 457.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.173e-05/0.3759, allocations: 53.5 kB / 457.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.916e-05/0.3759, allocations: 20 kB / 457.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002741/0.3762, allocations: 69.62 kB / 457.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007732/0.377, allocations: 267.5 kB / 457.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.379, allocations: 2.78 MB / 460.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008933/0.3799, allocations: 68.09 kB / 460.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.191e-05/0.38, allocations: 59.98 kB / 460.7 MB, free: 11.85 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.0005804/0.3806, allocations: 357.3 kB / 461 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.3807, allocations: 143 kB / 461.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.3818, allocations: 0.5489 MB / 461.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3818, allocations: 8 kB / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3818, allocations: 0 / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.3818, allocations: 3.984 kB / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002656/0.3845, allocations: 1.87 MB / 463.6 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.946e-06/0.3845, allocations: 7.938 kB / 463.6 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004144/0.3849, allocations: 103.8 kB / 463.7 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001437/0.3851, allocations: 50.17 kB / 463.8 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/0.3851, allocations: 19.94 kB / 463.8 MB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001907/0.387, allocations: 2.739 MB / 466.5 MB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.387, allocations: 7.938 kB / 466.5 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.3884, allocations: 0.9287 MB / 467.5 MB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004023/0.3889, allocations: 260.2 kB / 467.7 MB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.389, allocations: 23.98 kB / 467.7 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005019/0.3895, allocations: 27.97 kB / 467.8 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.3896, allocations: 55.81 kB / 467.8 MB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.3897, allocations: 16 kB / 467.8 MB, free: 4.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001193/0.3909, allocations: 0.85 MB / 468.7 MB, free: 3.328 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3909, allocations: 0 / 468.7 MB, free: 3.328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001104/0.392, allocations: 304 kB / 469 MB, free: 3.031 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.001754/0.3938, allocations: 1.52 MB / 470.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.3953, allocations: 0.9289 MB / 471.4 MB, free: 488 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3953, allocations: 0 / 471.4 MB, free: 488 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006877/0.396, allocations: 466.7 kB / 471.9 MB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3975, allocations: 334.9 kB / 472.2 MB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01733/0.4148, allocations: 10.93 MB / 483.1 MB, free: 3.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009748/0.4158, allocations: 1.174 MB / 484.3 MB, free: 2.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006432/0.4165, allocations: 171.3 kB / 484.5 MB, free: 2.543 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007817/0.4173, allocations: 0.5696 MB / 485.1 MB, free: 1.973 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4173, allocations: 0 / 485.1 MB, free: 1.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06893/0.4862, allocations: 27.8 MB / 0.5008 GB, free: 6.508 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.32, allocations: 7.938 kB / 0.5008 GB, free: 6.5 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.0.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