Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001313/0.001313, allocations: 189.4 kB / 18 MB, free: 5.102 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2691, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01429/0.2834, allocations: 11.74 MB / 412 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006973/0.2904, allocations: 3.23 MB / 415.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.2924, allocations: 35.94 kB / 415.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002184/0.2947, allocations: 0.644 MB / 415.9 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002499/0.2972, allocations: 0.6743 MB / 416.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.2982, allocations: 407.5 kB / 417 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003267/0.3015, allocations: 2.248 MB / 419.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.3031, allocations: 0.985 MB / 420.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.3047, allocations: 0.8288 MB / 421 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001488/0.3062, allocations: 0.9217 MB / 422 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003872/0.3066, allocations: 216 kB / 422.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006086/0.3072, allocations: 256 kB / 422.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003753/0.3076, allocations: 434.5 kB / 422.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001201/0.3088, allocations: 1.015 MB / 423.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00348/0.3123, allocations: 2.689 MB / 426.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.3123, allocations: 0 / 426.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3124, allocations: 4 kB / 426.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.854e-05/0.3124, allocations: 0 / 426.5 MB, free: 14.38 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.004318/0.3168, allocations: 2.105 MB / 428.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.3168, allocations: 15.95 kB / 428.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003018/0.3171, allocations: 224.1 kB / 428.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008736/0.318, allocations: 263.6 kB / 429.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.3201, allocations: 1.049 MB / 430.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-05/0.3203, allocations: 123.2 kB / 430.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/0.3205, allocations: 163.9 kB / 430.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002748/0.3233, allocations: 1.48 MB / 431.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.065e-05/0.3234, allocations: 15.89 kB / 432 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.3235, allocations: 60 kB / 432 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.611e-05/0.3235, allocations: 40 kB / 432.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.3256, allocations: 0.9707 MB / 433 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01003/0.3356, allocations: 6.541 MB / 439.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009089/0.3366, allocations: 400.7 kB / 440 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004649/0.3371, allocations: 225.7 kB / 440.2 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.3371, allocations: 4.438 kB / 440.2 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005722/0.3377, allocations: 276.8 kB / 440.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.755e-06/0.3377, allocations: 0 / 440.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003789/0.3415, allocations: 1.796 MB / 442.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.3417, allocations: 166.8 kB / 442.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/0.3435, allocations: 1.277 MB / 443.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.202e-05/0.3436, allocations: 37.7 kB / 443.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008042/0.3444, allocations: 0.8895 MB / 444.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001965/0.3446, allocations: 222.2 kB / 444.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.3449, allocations: 218.8 kB / 445.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.3451, allocations: 357.9 kB / 445.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004823/0.3456, allocations: 226.5 kB / 445.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009719/0.3466, allocations: 0.8034 MB / 446.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.3481, allocations: 1.11 MB / 447.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.3482, allocations: 8 kB / 447.5 MB, free: 8.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002168/0.3503, allocations: 1.185 MB / 448.7 MB, free: 6.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.248e-05/0.3504, allocations: 37.7 kB / 448.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/0.3505, allocations: 23.94 kB / 448.8 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002518/0.3507, allocations: 62.28 kB / 448.9 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.3515, allocations: 271.6 kB / 449.1 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/0.3539, allocations: 2.777 MB / 451.9 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.355, allocations: 67.89 kB / 452 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-05/0.3551, allocations: 56 kB / 452 MB, free: 3.289 MB / 366.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.0006596/0.3557, allocations: 366.9 kB / 452.4 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.356, allocations: 143 kB / 452.5 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.3571, allocations: 0.5451 MB / 453.1 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.3571, allocations: 4 kB / 453.1 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3571, allocations: 7.938 kB / 453.1 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.3572, allocations: 0 / 453.1 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.3602, allocations: 1.87 MB / 454.9 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3602, allocations: 4.094 kB / 454.9 MB, free: 216 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004288/0.3607, allocations: 99.89 kB / 455 MB, free: 116 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000166/0.3609, allocations: 53.56 kB / 455.1 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.641e-05/0.3609, allocations: 16 kB / 455.1 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002216/0.3631, allocations: 2.749 MB / 457.9 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/0.3632, allocations: 4 kB / 457.9 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.3648, allocations: 0.9286 MB / 458.8 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004843/0.3653, allocations: 264.2 kB / 459 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.3655, allocations: 19.94 kB / 459.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005215/0.366, allocations: 31.97 kB / 459.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3661, allocations: 55.83 kB / 459.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.3662, allocations: 23.98 kB / 459.2 MB, free: 11.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001307/0.3675, allocations: 0.8422 MB / 460 MB, free: 10.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3675, allocations: 0 / 460 MB, free: 10.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00124/0.3688, allocations: 308 kB / 460.3 MB, free: 10.46 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.002061/0.3708, allocations: 1.512 MB / 461.8 MB, free: 8.863 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001831/0.3727, allocations: 0.9254 MB / 462.8 MB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.3727, allocations: 0 / 462.8 MB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000792/0.3735, allocations: 481.9 kB / 463.2 MB, free: 7.406 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.3752, allocations: 334.3 kB / 463.6 MB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01792/0.3932, allocations: 10.93 MB / 474.5 MB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009152/0.3941, allocations: 1.174 MB / 475.7 MB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006706/0.3948, allocations: 167.3 kB / 475.8 MB, free: 9.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007404/0.3956, allocations: 0.5735 MB / 476.4 MB, free: 9.387 MB / 398.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3956, allocations: 4 kB / 476.4 MB, free: 9.383 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07557/0.4711, allocations: 27.74 MB / 0.4923 GB, free: 14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.49, allocations: 11.14 kB / 0.4923 GB, free: 13.99 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches