Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",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.001084/0.001084, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001148/0.001148, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.339/1.339, allocations: 222.9 MB / 242.2 MB, free: 15.22 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.2056/0.2056, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 57.56 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1019, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004725/0.1067, allocations: 2.903 MB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.1081, allocations: 0.6428 MB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002974/0.1084, allocations: 4 kB / 472.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.1086, allocations: 63.44 kB / 473 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002713/0.1089, allocations: 83.19 kB / 473 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002583/0.1092, allocations: 95.86 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005147/0.1097, allocations: 406.3 kB / 473.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.11, allocations: 127.1 kB / 473.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002697/0.1103, allocations: 143.6 kB / 473.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.1106, allocations: 167.3 kB / 474 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.055e-05/0.1106, allocations: 36 kB / 474 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.63e-05/0.1107, allocations: 32 kB / 474 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.351e-05/0.1108, allocations: 71.75 kB / 474.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.1111, allocations: 175.2 kB / 474.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004159/0.1115, allocations: 386.7 kB / 474.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1115, allocations: 0 / 474.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1115, allocations: 0 / 474.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.1115, allocations: 0 / 474.7 MB, free: 8.93 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001241/0.1128, allocations: 0.6316 MB / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.1128, allocations: 8.031 kB / 475.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.12e-05/0.1129, allocations: 62.73 kB / 475.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.356e-05/0.113, allocations: 40.45 kB / 475.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.1133, allocations: 268.1 kB / 475.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1134, allocations: 20.94 kB / 475.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.188e-05/0.1134, allocations: 32.38 kB / 475.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005797/0.114, allocations: 328.6 kB / 476 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.114, allocations: 3.938 kB / 476 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.1141, allocations: 12 kB / 476 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1141, allocations: 4 kB / 476 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000506/0.1146, allocations: 242.1 kB / 476.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002265/0.1169, allocations: 1.257 MB / 477.5 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/0.1176, allocations: 471.2 kB / 478 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/0.118, allocations: 168.3 kB / 478.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.118, allocations: 4.172 kB / 478.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.118, allocations: 38.8 kB / 478.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.118, allocations: 3.938 kB / 478.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003008/0.121, allocations: 1.007 MB / 479.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.1211, allocations: 59.41 kB / 479.3 MB, free: 4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.1213, allocations: 241 kB / 479.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.1214, allocations: 33.7 kB / 479.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.065e-05/0.1215, allocations: 164.3 kB / 479.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.106e-05/0.1216, allocations: 90.66 kB / 479.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.136e-05/0.1217, allocations: 53.7 kB / 479.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1218, allocations: 334.8 kB / 480.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.122, allocations: 103.9 kB / 480.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.1223, allocations: 140.2 kB / 480.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005186/0.1228, allocations: 252.1 kB / 480.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1228, allocations: 4 kB / 480.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001121/0.124, allocations: 494.5 kB / 481.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.124, allocations: 8 kB / 481.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.124, allocations: 0 / 481.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.125, allocations: 241.5 kB / 481.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.1252, allocations: 35.92 kB / 481.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004234/0.1294, allocations: 3.685 MB / 485.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.1297, allocations: 35.67 kB / 485.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.1297, allocations: 12 kB / 485.2 MB, free: 13.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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 {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001544/0.1298, allocations: 137.8 kB / 485.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-05/0.1299, allocations: 31.69 kB / 485.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.466e-05/0.13, allocations: 34.86 kB / 485.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.13, allocations: 4 kB / 485.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.13, allocations: 7.938 kB / 485.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.13, allocations: 0 / 485.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.1317, allocations: 0.8901 MB / 486.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1317, allocations: 4 kB / 486.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.1318, allocations: 27.92 kB / 486.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000905/0.1327, allocations: 233.5 kB / 486.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.1327, allocations: 4 kB / 486.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004095/0.1368, allocations: 3.696 MB / 490.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1369, allocations: 0 / 490.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1379, allocations: 0.528 MB / 490.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.138, allocations: 124.7 kB / 490.9 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.1381, allocations: 8 kB / 490.9 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.1383, allocations: 27.97 kB / 490.9 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.1384, allocations: 23.97 kB / 490.9 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.1384, allocations: 7.984 kB / 490.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001541/0.1386, allocations: 180.4 kB / 491.1 MB, free: 7.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1386, allocations: 8 kB / 491.1 MB, free: 7.395 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004394/0.1391, allocations: 103.8 kB / 491.2 MB, free: 7.293 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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 {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001422/0.1405, allocations: 1.073 MB / 492.3 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.1416, allocations: 0.5597 MB / 492.8 MB, free: 5.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1416, allocations: 4.062 kB / 492.9 MB, free: 5.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006189/0.1422, allocations: 433.1 kB / 493.3 MB, free: 5.148 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.1427, allocations: 56.34 kB / 493.3 MB, free: 5.094 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004992/0.1477, allocations: 3.039 MB / 496.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.1481, allocations: 0.7639 MB / 497.1 MB, free: 1.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.1482, allocations: 22.28 kB / 497.2 MB, free: 1.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.1484, allocations: 79.41 kB / 497.2 MB, free: 1.039 MB / 366.1 MB Notification: Performance of SimCode: time 2.505e-06/0.1484, allocations: 0 / 497.2 MB, free: 1.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.1772, allocations: 7.059 MB / 0.4925 GB, free: 10.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.995/9.173, allocations: 15.77 kB / 0.4925 GB, free: 10.12 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_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_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches