Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.001707/0.001707, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.00206/0.00206, allocations: 187.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07813/0.07937, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.1787/0.2581, allocations: 11.69 MB / 386.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004955/0.2631, allocations: 3.214 MB / 389.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007457/0.2639, allocations: 34.72 kB / 389.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.2653, allocations: 0.6431 MB / 390.2 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.2665, allocations: 0.6869 MB / 390.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006807/0.2672, allocations: 397.8 kB / 391.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001929/0.2691, allocations: 2.244 MB / 393.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.2702, allocations: 0.999 MB / 394.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009738/0.2712, allocations: 0.8262 MB / 395.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008167/0.272, allocations: 0.9183 MB / 396.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002297/0.2722, allocations: 217.1 kB / 396.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004314/0.2727, allocations: 254.1 kB / 396.8 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.2729, allocations: 427 kB / 397.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007079/0.2736, allocations: 1.016 MB / 398.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002714/0.2763, allocations: 2.683 MB / 400.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2764, allocations: 1.125 kB / 400.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2764, allocations: 1.125 kB / 400.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.014e-05/0.2764, allocations: 4 kB / 400.9 MB, free: 15.09 MB / 334.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.003312/0.2797, allocations: 2.056 MB / 402.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.2798, allocations: 10.75 kB / 402.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002402/0.28, allocations: 227.8 kB / 403.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007371/0.2808, allocations: 252.3 kB / 403.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.2824, allocations: 1.047 MB / 404.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.142e-05/0.2825, allocations: 116.8 kB / 404.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.2827, allocations: 157.1 kB / 404.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002246/0.2849, allocations: 1.488 MB / 406.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.899e-05/0.285, allocations: 15.05 kB / 406.2 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.2851, allocations: 67.06 kB / 406.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.201e-05/0.2851, allocations: 38.09 kB / 406.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.2869, allocations: 0.9675 MB / 407.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007285/0.2942, allocations: 6.517 MB / 413.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000806/0.2951, allocations: 403.6 kB / 414.2 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004295/0.2955, allocations: 216.5 kB / 414.4 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.981e-05/0.2956, allocations: 11.47 kB / 414.4 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000493/0.2961, allocations: 272.7 kB / 414.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.235e-06/0.2961, allocations: 0 / 414.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003173/0.2993, allocations: 1.757 MB / 416.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.2994, allocations: 162.4 kB / 416.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.3009, allocations: 1.279 MB / 417.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.3009, allocations: 40.86 kB / 417.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006037/0.3015, allocations: 0.8676 MB / 418.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.3017, allocations: 210.6 kB / 419 MB, free: 1.871 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002608/0.302, allocations: 219.7 kB / 419.2 MB, free: 1.734 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3021, allocations: 355 kB / 419.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004458/0.3026, allocations: 229.8 kB / 419.8 MB, free: 1.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007906/0.3034, allocations: 0.8043 MB / 420.6 MB, free: 388 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.3047, allocations: 1.114 MB / 421.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/0.3047, allocations: 9.5 kB / 421.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001768/0.3064, allocations: 1.169 MB / 422.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.769e-05/0.3065, allocations: 41.7 kB / 422.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.3065, allocations: 24.56 kB / 423 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.3068, allocations: 69.7 kB / 423 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007343/0.3075, allocations: 267.6 kB / 423.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.3094, allocations: 2.772 MB / 426.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009169/0.3103, allocations: 71.88 kB / 426.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-05/0.3104, allocations: 64 kB / 426.2 MB, free: 10.86 MB / 350.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.0005197/0.3109, allocations: 353.4 kB / 426.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.3111, allocations: 134.3 kB / 426.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009716/0.312, allocations: 0.5528 MB / 427.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.3121, allocations: 8 kB / 427.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.3121, allocations: 0 / 427.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3121, allocations: 3.984 kB / 427.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.3146, allocations: 1.874 MB / 429.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.3147, allocations: 4 kB / 429.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004032/0.3151, allocations: 103.9 kB / 429.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001281/0.3152, allocations: 45.64 kB / 429.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.3153, allocations: 16.34 kB / 429.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.317, allocations: 2.757 MB / 432 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.317, allocations: 7.984 kB / 432 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.3183, allocations: 0.9199 MB / 433 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003902/0.3187, allocations: 251.5 kB / 433.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.3188, allocations: 16 kB / 433.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005138/0.3194, allocations: 35.97 kB / 433.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.3195, allocations: 59.59 kB / 433.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.3195, allocations: 16 kB / 433.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.3206, allocations: 0.8461 MB / 434.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3206, allocations: 0 / 434.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001071/0.3217, allocations: 304 kB / 434.5 MB, free: 2.055 MB / 350.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.001633/0.3233, allocations: 1.5 MB / 436 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.3248, allocations: 0.9297 MB / 436.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3248, allocations: 0.5 kB / 436.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006332/0.3255, allocations: 481.1 kB / 437.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.3269, allocations: 331.8 kB / 437.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.3414, allocations: 10.88 MB / 448.6 MB, free: 3.004 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007319/0.3422, allocations: 1.17 MB / 449.7 MB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005726/0.3428, allocations: 175.3 kB / 449.9 MB, free: 1.625 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.3434, allocations: 0.5696 MB / 450.5 MB, free: 1.055 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3434, allocations: 4 kB / 450.5 MB, free: 1.051 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06102/0.4045, allocations: 27.75 MB / 478.2 MB, free: 5.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.72, allocations: 19.73 kB / 478.3 MB, free: 5.184 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches