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.001398/0.001399, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.00154/0.00154, allocations: 183.9 kB / 18.71 MB, free: 4.34 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.292/1.292, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2005/0.2005, allocations: 44.19 MB / 336.8 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.001131, allocations: 63.89 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2838, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.008204/0.2921, allocations: 7.72 MB / 0.526 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004755/0.2969, allocations: 2.357 MB / 0.5283 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009968/0.2979, allocations: 28.41 kB / 0.5283 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004018/0.3019, allocations: 1.824 MB / 0.5301 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002338/0.3043, allocations: 0.8657 MB / 0.5309 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002033/0.3063, allocations: 0.8939 MB / 0.5318 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00165/0.308, allocations: 1.404 MB / 0.5332 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.3093, allocations: 1.014 MB / 0.5342 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006796/0.31, allocations: 0.5977 MB / 0.5347 GB, free: 7.727 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000684/0.3107, allocations: 0.7212 MB / 0.5354 GB, free: 7.262 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.3108, allocations: 112.8 kB / 0.5355 GB, free: 7.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006457/0.3115, allocations: 330.7 kB / 0.5359 GB, free: 7.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002137/0.3117, allocations: 301.1 kB / 0.5362 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005299/0.3122, allocations: 0.6509 MB / 0.5368 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001784/0.314, allocations: 1.77 MB / 0.5385 GB, free: 5.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.314, allocations: 5.062 kB / 0.5385 GB, free: 5.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.3141, allocations: 0 / 0.5385 GB, free: 5.156 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.3141, allocations: 0 / 0.5385 GB, free: 5.156 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.007376/0.3215, allocations: 2.405 MB / 0.5409 GB, free: 3.594 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.3215, allocations: 17.45 kB / 0.5409 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002047/0.3217, allocations: 194.7 kB / 0.5411 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01026/0.332, allocations: 1.393 MB / 0.5424 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.333, allocations: 0.6125 MB / 0.543 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.95e-05/0.3331, allocations: 100.7 kB / 0.5431 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.3333, allocations: 137.1 kB / 0.5433 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.3357, allocations: 1.483 MB / 0.5447 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.3358, allocations: 4 kB / 0.5447 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/0.3359, allocations: 52 kB / 0.5448 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.563e-05/0.3359, allocations: 36 kB / 0.5448 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002446/0.3384, allocations: 1.509 MB / 0.5463 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006992/0.3454, allocations: 5.363 MB / 0.5515 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/0.3476, allocations: 2.186 MB / 0.5536 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009578/0.3486, allocations: 0.6476 MB / 0.5543 GB, free: 6.668 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001144/0.3487, allocations: 102.1 kB / 0.5544 GB, free: 6.551 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.3488, allocations: 47.56 kB / 0.5544 GB, free: 6.496 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 2.675e-06/0.3488, allocations: 0 / 0.5544 GB, free: 6.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.008689/0.3575, allocations: 3.098 MB / 0.5574 GB, free: 3.367 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.3575, allocations: 90.11 kB / 0.5575 GB, free: 3.262 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000468/0.358, allocations: 473.8 kB / 0.558 GB, free: 2.789 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.05e-05/0.3581, allocations: 45.7 kB / 0.558 GB, free: 2.738 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.3584, allocations: 477 kB / 0.5585 GB, free: 2.266 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002936/0.3587, allocations: 444.2 kB / 0.5589 GB, free: 1.828 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003215/0.359, allocations: 218.8 kB / 0.5591 GB, free: 1.609 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3591, allocations: 378.7 kB / 0.5595 GB, free: 1.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008099/0.36, allocations: 458.4 kB / 0.5599 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.3609, allocations: 0.6919 MB / 0.5606 GB, free: 0 / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.3627, allocations: 1.194 MB / 0.5617 GB, free: 14.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3627, allocations: 0 / 0.5617 GB, free: 14.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002786/0.3655, allocations: 1.598 MB / 0.5633 GB, free: 13.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3656, allocations: 8 kB / 0.5633 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.3656, allocations: 11.98 kB / 0.5633 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001538/0.3671, allocations: 0.5282 MB / 0.5638 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007642/0.3679, allocations: 195.7 kB / 0.564 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001917/0.3681, allocations: 61.12 kB / 0.5641 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006982/0.3688, allocations: 131 kB / 0.5642 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.253e-05/0.3689, allocations: 48 kB / 0.5643 GB, free: 12.12 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.0004003/0.3693, allocations: 265.6 kB / 0.5645 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.3695, allocations: 79.48 kB / 0.5646 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/0.3722, allocations: 1.567 MB / 0.5661 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/0.3722, allocations: 19.92 kB / 0.5661 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3722, allocations: 0 / 0.5661 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.3723, allocations: 7.984 kB / 0.5661 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004286/0.3766, allocations: 2.867 MB / 0.5689 GB, free: 7.234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3766, allocations: 3.984 kB / 0.5689 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006357/0.3772, allocations: 147.8 kB / 0.5691 GB, free: 7.086 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.3786, allocations: 0.5145 MB / 0.5696 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.706e-05/0.3787, allocations: 31.98 kB / 0.5696 GB, free: 6.539 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003077/0.379, allocations: 68.73 kB / 0.5697 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.379, allocations: 0 / 0.5697 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003765/0.3828, allocations: 2.329 MB / 0.572 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.3832, allocations: 292.1 kB / 0.5722 GB, free: 3.816 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.3834, allocations: 27.94 kB / 0.5723 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006053/0.384, allocations: 47.86 kB / 0.5723 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.3841, allocations: 85.25 kB / 0.5724 GB, free: 3.656 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.027e-05/0.3842, allocations: 35.98 kB / 0.5724 GB, free: 3.621 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003169/0.3845, allocations: 310.9 kB / 0.5727 GB, free: 3.316 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3846, allocations: 0 / 0.5727 GB, free: 3.316 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008873/0.3854, allocations: 343.3 kB / 0.5731 GB, free: 2.98 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.004139/0.3896, allocations: 2.939 MB / 0.5759 GB, free: 12 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00279/0.3924, allocations: 1.358 MB / 0.5773 GB, free: 14.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3924, allocations: 4 kB / 0.5773 GB, free: 14.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/0.3941, allocations: 0.7712 MB / 0.578 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006745/0.3948, allocations: 109.7 kB / 0.5781 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.4069, allocations: 8.404 MB / 0.5863 GB, free: 5.078 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000576/0.4075, allocations: 1.04 MB / 0.5873 GB, free: 4.012 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004395/0.4079, allocations: 106.8 kB / 0.5874 GB, free: 3.902 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004758/0.4084, allocations: 391.3 kB / 0.5878 GB, free: 3.52 MB / 446.1 MB Notification: Performance of SimCode: time 5.52e-07/0.4084, allocations: 0 / 0.5878 GB, free: 3.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04394/0.4523, allocations: 21.78 MB / 0.6091 GB, free: 13.96 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.33, allocations: 16.95 kB / 0.6091 GB, free: 13.94 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