Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",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.001258/0.001258, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.001238/0.001238, allocations: 181 kB / 18.71 MB, free: 4.332 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.396/1.396, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2115/0.2115, allocations: 44.2 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 75.88 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2838, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.007852/0.2917, allocations: 7.724 MB / 0.526 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004551/0.2963, allocations: 2.359 MB / 0.5283 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004659/0.2968, allocations: 28.69 kB / 0.5283 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004003/0.3008, allocations: 1.821 MB / 0.5301 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002101/0.3029, allocations: 0.8646 MB / 0.5309 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.3049, allocations: 0.8938 MB / 0.5318 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001707/0.3066, allocations: 1.41 MB / 0.5332 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001444/0.3081, allocations: 1 MB / 0.5342 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007713/0.3089, allocations: 0.5985 MB / 0.5347 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008046/0.3097, allocations: 0.728 MB / 0.5354 GB, free: 7.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.3098, allocations: 112.9 kB / 0.5356 GB, free: 7.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007112/0.3106, allocations: 330.2 kB / 0.5359 GB, free: 7.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002624/0.3108, allocations: 305 kB / 0.5362 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006282/0.3115, allocations: 0.6506 MB / 0.5368 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002087/0.3136, allocations: 1.766 MB / 0.5385 GB, free: 5.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3136, allocations: 0 / 0.5385 GB, free: 5.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.558e-06/0.3136, allocations: 0 / 0.5385 GB, free: 5.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.242e-05/0.3136, allocations: 5.219 kB / 0.5385 GB, free: 5.168 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.007875/0.3215, allocations: 2.405 MB / 0.5409 GB, free: 3.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3216, allocations: 8.969 kB / 0.5409 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003459/0.3219, allocations: 197.1 kB / 0.5411 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01797/0.3399, allocations: 1.398 MB / 0.5424 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002022/0.342, allocations: 0.6125 MB / 0.543 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.3421, allocations: 104.2 kB / 0.5431 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/0.3424, allocations: 133.7 kB / 0.5433 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004149/0.3466, allocations: 1.483 MB / 0.5447 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.996e-05/0.3467, allocations: 4 kB / 0.5447 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002107/0.3469, allocations: 52 kB / 0.5448 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.873e-05/0.347, allocations: 43.98 kB / 0.5448 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004379/0.3514, allocations: 1.505 MB / 0.5463 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0125/0.3639, allocations: 5.363 MB / 0.5515 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003958/0.3679, allocations: 2.167 MB / 0.5536 GB, free: 7.363 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/0.3696, allocations: 0.6475 MB / 0.5543 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002249/0.3698, allocations: 106.1 kB / 0.5544 GB, free: 6.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.531e-05/0.3699, allocations: 51.55 kB / 0.5544 GB, free: 6.531 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 4.99e-06/0.3699, allocations: 0 / 0.5544 GB, free: 6.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.01412/0.384, allocations: 3.098 MB / 0.5574 GB, free: 3.402 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.3841, allocations: 94.08 kB / 0.5575 GB, free: 3.293 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.3847, allocations: 477.8 kB / 0.558 GB, free: 2.816 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.595e-05/0.3848, allocations: 45.7 kB / 0.558 GB, free: 2.766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004001/0.3852, allocations: 476.9 kB / 0.5585 GB, free: 2.293 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005219/0.3857, allocations: 440.2 kB / 0.5589 GB, free: 1.859 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005423/0.3863, allocations: 210.9 kB / 0.5591 GB, free: 1.648 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002679/0.3865, allocations: 382.8 kB / 0.5595 GB, free: 1.266 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.3878, allocations: 458.4 kB / 0.5599 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.3889, allocations: 0.6958 MB / 0.5606 GB, free: 32 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.391, allocations: 1.198 MB / 0.5618 GB, free: 14.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.391, allocations: 0 / 0.5618 GB, free: 14.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002992/0.394, allocations: 1.594 MB / 0.5633 GB, free: 13.14 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.394, allocations: 12 kB / 0.5633 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.3941, allocations: 8 kB / 0.5633 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/0.3957, allocations: 0.5356 MB / 0.5639 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007777/0.3964, allocations: 195.7 kB / 0.564 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001991/0.3967, allocations: 57.12 kB / 0.5641 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007204/0.3974, allocations: 131 kB / 0.5642 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-05/0.3975, allocations: 44 kB / 0.5643 GB, free: 12.16 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0004622/0.398, allocations: 269.6 kB / 0.5645 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.3981, allocations: 83.48 kB / 0.5646 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002943/0.4011, allocations: 1.564 MB / 0.5661 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.4011, allocations: 15.94 kB / 0.5661 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4011, allocations: 4 kB / 0.5661 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.4011, allocations: 11.97 kB / 0.5662 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004766/0.4059, allocations: 2.871 MB / 0.569 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.4059, allocations: 0 / 0.569 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006481/0.4066, allocations: 139.8 kB / 0.5691 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/0.4081, allocations: 0.5145 MB / 0.5696 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.519e-05/0.4082, allocations: 28 kB / 0.5696 GB, free: 6.574 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003159/0.4085, allocations: 72.66 kB / 0.5697 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4085, allocations: 0 / 0.5697 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004254/0.4128, allocations: 2.333 MB / 0.572 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004551/0.4133, allocations: 284.1 kB / 0.5722 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.4134, allocations: 31.92 kB / 0.5723 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00059/0.414, allocations: 48.05 kB / 0.5723 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.4142, allocations: 81.14 kB / 0.5724 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.127e-05/0.4143, allocations: 35.98 kB / 0.5724 GB, free: 3.656 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003662/0.4146, allocations: 310.9 kB / 0.5727 GB, free: 3.352 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4147, allocations: 0 / 0.5727 GB, free: 3.352 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009432/0.4156, allocations: 339.3 kB / 0.573 GB, free: 3.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004513/0.4201, allocations: 2.947 MB / 0.5759 GB, free: 44 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003036/0.4232, allocations: 1.363 MB / 0.5773 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.4232, allocations: 8.062 kB / 0.5773 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001848/0.425, allocations: 0.766 MB / 0.578 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006942/0.4257, allocations: 93.83 kB / 0.5781 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.4391, allocations: 8.411 MB / 0.5863 GB, free: 5.113 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007237/0.4399, allocations: 1.044 MB / 0.5873 GB, free: 4.043 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000477/0.4404, allocations: 106.8 kB / 0.5874 GB, free: 3.934 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005216/0.4409, allocations: 387.3 kB / 0.5878 GB, free: 3.555 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4409, allocations: 0 / 0.5878 GB, free: 3.555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05312/0.494, allocations: 21.78 MB / 0.6091 GB, free: 13.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.12, allocations: 20.27 kB / 0.6091 GB, free: 13.97 MB / 478.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches