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.001288/0.001288, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001365, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2818, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01264/0.2945, allocations: 11.77 MB / 420.5 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006251/0.3008, allocations: 3.25 MB / 423.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001625/0.3025, allocations: 35.94 kB / 423.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002249/0.3048, allocations: 0.6791 MB / 424.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003076/0.3079, allocations: 0.7173 MB / 425.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.3092, allocations: 411.4 kB / 425.6 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003303/0.3125, allocations: 2.237 MB / 427.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001681/0.3142, allocations: 0.985 MB / 428.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.3159, allocations: 0.856 MB / 429.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001563/0.3174, allocations: 0.9139 MB / 430.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006087/0.3181, allocations: 216 kB / 430.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000947/0.319, allocations: 260 kB / 431.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004204/0.3195, allocations: 434.4 kB / 431.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001513/0.321, allocations: 1.015 MB / 432.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003375/0.3244, allocations: 2.689 MB / 435.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.3244, allocations: 4 kB / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3244, allocations: 0 / 435.2 MB, free: 6.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.21e-05/0.3245, 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.004058/0.3286, allocations: 2.116 MB / 437.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.3286, allocations: 12.03 kB / 437.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002535/0.3289, allocations: 216.1 kB / 437.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008165/0.3297, allocations: 271.6 kB / 437.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.3315, allocations: 1.049 MB / 438.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.503e-05/0.3316, allocations: 119.2 kB / 439 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.3318, allocations: 159.9 kB / 439.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/0.3344, allocations: 1.483 MB / 440.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.108e-05/0.3345, allocations: 11.94 kB / 440.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.3346, allocations: 64 kB / 440.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.04e-05/0.3346, allocations: 40 kB / 440.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.3365, allocations: 0.9785 MB / 441.7 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008414/0.3449, allocations: 6.549 MB / 448.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008233/0.3458, allocations: 396.2 kB / 448.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/0.3462, allocations: 221.5 kB / 448.9 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.267e-05/0.3463, allocations: 12.42 kB / 448.9 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.3468, allocations: 272.8 kB / 449.1 MB, free: 8.441 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.265e-06/0.3468, allocations: 0 / 449.1 MB, free: 8.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003484/0.3503, allocations: 1.78 MB / 450.9 MB, free: 6.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.591e-05/0.3504, allocations: 166.8 kB / 451.1 MB, free: 6.371 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.3522, allocations: 1.277 MB / 452.4 MB, free: 5.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.769e-05/0.3523, allocations: 33.7 kB / 452.4 MB, free: 5.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006696/0.353, allocations: 0.8973 MB / 453.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.3532, allocations: 218.2 kB / 453.5 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.3534, allocations: 218.7 kB / 453.7 MB, free: 3.699 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3536, allocations: 361.9 kB / 454.1 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.354, allocations: 222.5 kB / 454.3 MB, free: 3.121 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007867/0.3548, allocations: 0.8112 MB / 455.1 MB, free: 2.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.3562, allocations: 1.118 MB / 456.2 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.3562, allocations: 4 kB / 456.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002142/0.3584, allocations: 1.174 MB / 457.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.406e-05/0.3584, allocations: 49.44 kB / 457.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/0.3585, allocations: 23.94 kB / 457.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/0.3587, allocations: 61.7 kB / 457.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007646/0.3595, allocations: 263.9 kB / 457.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.3615, allocations: 2.788 MB / 460.6 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.3627, allocations: 67.92 kB / 460.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.3629, allocations: 60 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.0007386/0.3636, allocations: 361.3 kB / 461 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/0.3639, allocations: 143 kB / 461.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.3651, allocations: 0.5489 MB / 461.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.3652, allocations: 4 kB / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3652, allocations: 4 kB / 461.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3652, allocations: 7.984 kB / 461.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003311/0.3685, allocations: 1.87 MB / 463.6 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.3685, allocations: 4.469 kB / 463.6 MB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.369, allocations: 107.9 kB / 463.7 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001692/0.3692, allocations: 41.64 kB / 463.8 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.18e-05/0.3692, allocations: 19.94 kB / 463.8 MB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.3715, allocations: 2.746 MB / 466.5 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.3715, allocations: 8 kB / 466.5 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.3733, allocations: 0.9326 MB / 467.5 MB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007038/0.374, allocations: 256.2 kB / 467.7 MB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003573/0.3744, allocations: 19.98 kB / 467.7 MB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007221/0.3751, allocations: 31.98 kB / 467.8 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.3753, allocations: 55.81 kB / 467.8 MB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.287e-05/0.3753, allocations: 16 kB / 467.8 MB, free: 4.172 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001582/0.3769, allocations: 0.8461 MB / 468.7 MB, free: 3.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3769, allocations: 4 kB / 468.7 MB, free: 3.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001541/0.3785, allocations: 300 kB / 469 MB, free: 3.027 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.002143/0.3806, allocations: 1.512 MB / 470.5 MB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.3824, allocations: 0.9258 MB / 471.4 MB, free: 496 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/0.3824, allocations: 4 kB / 471.4 MB, free: 492 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007091/0.3831, allocations: 469.9 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.00202/0.3851, allocations: 343.1 kB / 472.2 MB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/0.4041, allocations: 10.93 MB / 483.2 MB, free: 3.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009206/0.4051, allocations: 1.178 MB / 484.3 MB, free: 2.703 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006862/0.4058, allocations: 171.3 kB / 484.5 MB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007828/0.4066, allocations: 0.5657 MB / 485.1 MB, free: 1.965 MB / 398.1 MB Notification: Performance of SimCode: time 1.513e-06/0.4066, allocations: 0 / 485.1 MB, free: 1.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06906/0.4757, allocations: 27.79 MB / 0.5008 GB, free: 6.508 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12, allocations: 10.06 kB / 0.5008 GB, free: 6.504 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