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.001529/0.001528, allocations: 114.1 kB / 17.07 MB, free: 5.984 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.001279/0.001279, allocations: 194.9 kB / 18.01 MB, free: 5.066 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.336/1.336, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2843, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01239/0.2967, allocations: 11.75 MB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00644/0.3032, allocations: 3.219 MB / 415.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001405/0.3047, allocations: 35.94 kB / 415.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.3067, allocations: 0.6674 MB / 415.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002011/0.3087, allocations: 0.729 MB / 416.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008913/0.3096, allocations: 403.5 kB / 417 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002532/0.3121, allocations: 2.26 MB / 419.3 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.3135, allocations: 0.9889 MB / 420.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.3147, allocations: 0.8366 MB / 421.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.3159, allocations: 0.9138 MB / 422 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002834/0.3162, allocations: 220 kB / 422.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004607/0.3167, allocations: 256 kB / 422.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003344/0.317, allocations: 426.5 kB / 422.9 MB, free: 2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009894/0.318, allocations: 1.023 MB / 423.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002869/0.3209, allocations: 2.685 MB / 426.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3209, allocations: 8 kB / 426.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3209, allocations: 0 / 426.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.321, allocations: 0 / 426.6 MB, free: 14.27 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.003536/0.3245, allocations: 2.113 MB / 428.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.3246, allocations: 16.03 kB / 428.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003478/0.3249, allocations: 220 kB / 429 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007675/0.3257, allocations: 263.6 kB / 429.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.3273, allocations: 1.049 MB / 430.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.353e-05/0.3274, allocations: 119.2 kB / 430.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002061/0.3276, allocations: 160 kB / 430.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.33, allocations: 1.483 MB / 432 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.988e-05/0.33, allocations: 15.89 kB / 432.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.3301, allocations: 64 kB / 432.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.148e-05/0.3302, allocations: 40 kB / 432.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.332, allocations: 0.9707 MB / 433.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00777/0.3398, allocations: 6.545 MB / 439.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008202/0.3406, allocations: 396.6 kB / 440.1 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004279/0.3411, allocations: 222.1 kB / 440.3 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.3411, allocations: 8.422 kB / 440.3 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005168/0.3416, allocations: 268.8 kB / 440.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.074e-06/0.3417, allocations: 0 / 440.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003247/0.3449, allocations: 1.788 MB / 442.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.345, allocations: 170.8 kB / 442.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.3467, allocations: 1.273 MB / 443.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.152e-05/0.3468, allocations: 41.64 kB / 443.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00069/0.3474, allocations: 0.8972 MB / 444.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.3476, allocations: 218.2 kB / 444.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.3479, allocations: 218.8 kB / 445.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.3481, allocations: 349.9 kB / 445.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004507/0.3486, allocations: 230.5 kB / 445.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008141/0.3494, allocations: 0.8034 MB / 446.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.3507, allocations: 1.122 MB / 447.6 MB, free: 7.961 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.3507, allocations: 8 kB / 447.6 MB, free: 7.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001848/0.3526, allocations: 1.17 MB / 448.8 MB, free: 6.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/0.3527, allocations: 45.7 kB / 448.9 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/0.3527, allocations: 27.88 kB / 448.9 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.3529, allocations: 65.69 kB / 449 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007548/0.3537, allocations: 259.6 kB / 449.2 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.3557, allocations: 2.773 MB / 452 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009041/0.3566, allocations: 76 kB / 452.1 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.067e-05/0.3567, allocations: 60 kB / 452.1 MB, free: 3.18 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.0005271/0.3573, allocations: 355 kB / 452.5 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.3574, allocations: 147.1 kB / 452.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009964/0.3584, allocations: 0.5489 MB / 453.2 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.3584, allocations: 8 kB / 453.2 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3585, allocations: 0 / 453.2 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3585, allocations: 3.984 kB / 453.2 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.3611, allocations: 1.874 MB / 455 MB, free: 108 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.954e-06/0.3611, allocations: 4 kB / 455 MB, free: 104 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.3616, allocations: 107.9 kB / 455.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001393/0.3617, allocations: 46.06 kB / 455.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.3617, allocations: 23.98 kB / 455.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001952/0.3637, allocations: 2.745 MB / 458 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3637, allocations: 4 kB / 458 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3651, allocations: 0.9285 MB / 458.9 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004173/0.3656, allocations: 260.2 kB / 459.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.3658, allocations: 19.98 kB / 459.2 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.3664, allocations: 27.98 kB / 459.2 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.3665, allocations: 59.81 kB / 459.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.3665, allocations: 12 kB / 459.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.3678, allocations: 0.85 MB / 460.1 MB, free: 10.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3678, allocations: 0 / 460.1 MB, free: 10.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001199/0.369, allocations: 304 kB / 460.4 MB, free: 10.36 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.001994/0.371, allocations: 1.516 MB / 461.9 MB, free: 8.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.3727, allocations: 0.9259 MB / 462.9 MB, free: 7.797 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.3727, allocations: 4 kB / 462.9 MB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.3734, allocations: 476.8 kB / 463.3 MB, free: 7.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.375, allocations: 332 kB / 463.6 MB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01739/0.3924, allocations: 10.92 MB / 474.6 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.3935, allocations: 1.178 MB / 475.7 MB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006866/0.3942, allocations: 167.3 kB / 475.9 MB, free: 9.855 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007791/0.395, allocations: 0.5713 MB / 476.5 MB, free: 9.285 MB / 398.1 MB Notification: Performance of SimCode: time 1.623e-06/0.395, allocations: 3.938 kB / 476.5 MB, free: 9.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06707/0.4621, allocations: 27.74 MB / 0.4924 GB, free: 13.89 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.15, allocations: 20.83 kB / 0.4924 GB, free: 13.88 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