Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.00164/0.00164, allocations: 108.7 kB / 17.06 MB, free: 5.828 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.001504/0.001504, allocations: 193.4 kB / 18 MB, free: 4.965 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 47.94 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.283, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01048/0.2935, allocations: 8.223 MB / 408.5 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005484/0.299, allocations: 2.695 MB / 411.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.3003, allocations: 23.94 kB / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.3026, allocations: 0.5558 MB / 411.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002204/0.3049, allocations: 476.2 kB / 412.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009213/0.3058, allocations: 267.6 kB / 412.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002324/0.3081, allocations: 1.498 MB / 414 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000874/0.309, allocations: 0.5846 MB / 414.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007438/0.3098, allocations: 0.5564 MB / 415.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007439/0.3105, allocations: 0.6105 MB / 415.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001988/0.3107, allocations: 140 kB / 415.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000385/0.3111, allocations: 180 kB / 416 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002619/0.3114, allocations: 290.9 kB / 416.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007504/0.3122, allocations: 0.6726 MB / 417 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002408/0.3146, allocations: 1.759 MB / 418.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3146, allocations: 0 / 418.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3146, allocations: 0 / 418.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.3146, allocations: 0 / 418.7 MB, free: 6.203 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00259/0.3172, allocations: 1.518 MB / 420.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.3173, allocations: 12.03 kB / 420.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001899/0.3175, allocations: 152.4 kB / 420.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000665/0.3182, allocations: 192 kB / 420.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.3195, allocations: 0.7701 MB / 421.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.779e-05/0.3196, allocations: 74 kB / 421.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.3197, allocations: 96 kB / 421.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.3214, allocations: 0.9464 MB / 422.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/0.3214, allocations: 7.953 kB / 422.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.209e-05/0.3215, allocations: 40 kB / 422.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.603e-05/0.3216, allocations: 24 kB / 422.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.3229, allocations: 0.652 MB / 423.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005511/0.3284, allocations: 3.927 MB / 427.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007865/0.3292, allocations: 445.6 kB / 427.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006383/0.3299, allocations: 272.7 kB / 427.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.083e-05/0.3299, allocations: 8 kB / 427.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.33, allocations: 42.5 kB / 427.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.104e-06/0.33, allocations: 0 / 427.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003308/0.3333, allocations: 1.574 MB / 429.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.3334, allocations: 85.11 kB / 429.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/0.3346, allocations: 0.8333 MB / 430.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.3347, allocations: 37.7 kB / 430.4 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004663/0.3351, allocations: 0.5736 MB / 431 MB, free: 9.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.3353, allocations: 170.6 kB / 431.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.3355, allocations: 138.4 kB / 431.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3357, allocations: 334 kB / 431.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.336, allocations: 181.8 kB / 431.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006252/0.3367, allocations: 463.6 kB / 432.3 MB, free: 8.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.3377, allocations: 0.6836 MB / 432.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3377, allocations: 4 kB / 432.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001416/0.3391, allocations: 0.791 MB / 433.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.3392, allocations: 8 kB / 433.7 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3392, allocations: 12 kB / 433.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002879/0.3395, allocations: 89.89 kB / 433.8 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005165/0.34, allocations: 159.7 kB / 434 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002935/0.343, allocations: 3.138 MB / 437.1 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.3436, allocations: 44 kB / 437.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.503e-05/0.3436, allocations: 32 kB / 437.2 MB, free: 2.633 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004696/0.3441, allocations: 269.4 kB / 437.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.3442, allocations: 95.42 kB / 437.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.3453, allocations: 0.4992 MB / 438.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3453, allocations: 4 kB / 438.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3453, allocations: 4 kB / 438.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.3453, allocations: 3.984 kB / 438.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.3477, allocations: 1.482 MB / 439.6 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.3477, allocations: 4 kB / 439.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.348, allocations: 71.89 kB / 439.6 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002124/0.3482, allocations: 69.91 kB / 439.7 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.3483, allocations: 15.98 kB / 439.7 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002756/0.351, allocations: 3.122 MB / 442.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3511, allocations: 0 / 442.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.3525, allocations: 0.806 MB / 443.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003207/0.3528, allocations: 208.5 kB / 443.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.884e-05/0.3529, allocations: 15.94 kB / 443.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004086/0.3533, allocations: 27.98 kB / 443.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.164e-05/0.3535, allocations: 39.89 kB / 443.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.059e-05/0.3535, allocations: 12 kB / 443.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000869/0.3544, allocations: 0.5771 MB / 444.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3544, allocations: 0 / 444.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009076/0.3553, allocations: 208 kB / 444.7 MB, free: 10.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.001913/0.3572, allocations: 1.381 MB / 446.1 MB, free: 9.227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.3586, allocations: 0.7081 MB / 446.8 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3586, allocations: 0 / 446.8 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007416/0.3593, allocations: 455.1 kB / 447.3 MB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.3605, allocations: 227.2 kB / 447.5 MB, free: 7.801 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.3721, allocations: 7.476 MB / 455 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007567/0.3729, allocations: 1.013 MB / 456 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004722/0.3734, allocations: 103.3 kB / 456.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005075/0.3739, allocations: 387.3 kB / 456.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3739, allocations: 4 kB / 456.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05935/0.4332, allocations: 19.43 MB / 475.9 MB, free: 11.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.81, allocations: 14.33 kB / 475.9 MB, free: 11.22 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_DCSE_SinglePhase.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches