Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001176/0.001176, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 46.09 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 75.97 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1142, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004336/0.1186, allocations: 2.924 MB / 483.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1198, allocations: 0.6778 MB / 483.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.1201, allocations: 8 kB / 483.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.1203, allocations: 59.42 kB / 483.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002018/0.1205, allocations: 91.19 kB / 483.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.1207, allocations: 83.88 kB / 484 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.1211, allocations: 414.2 kB / 484.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.1214, allocations: 127.1 kB / 484.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.1216, allocations: 143.6 kB / 484.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.1218, allocations: 167.3 kB / 484.8 MB, free: 500 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.614e-05/0.1219, allocations: 35.94 kB / 484.8 MB, free: 464 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.704e-05/0.1219, allocations: 36 kB / 484.9 MB, free: 428 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.384e-05/0.122, allocations: 75.75 kB / 484.9 MB, free: 352 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1222, allocations: 167.2 kB / 485.1 MB, free: 184 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.1225, allocations: 386.7 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1225, allocations: 0 / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1226, allocations: 4 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1226, allocations: 0 / 485.5 MB, free: 15.8 MB / 366.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.001017/0.1236, allocations: 0.6277 MB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1236, allocations: 9.109 kB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.358e-05/0.1237, allocations: 66.72 kB / 486.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.503e-05/0.1238, allocations: 36.47 kB / 486.2 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.1241, allocations: 276.1 kB / 486.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.1241, allocations: 20.88 kB / 486.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.849e-05/0.1242, allocations: 28.38 kB / 486.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.1247, allocations: 324.7 kB / 486.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.1248, allocations: 0 / 486.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.1248, allocations: 16 kB / 486.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1248, allocations: 11.88 kB / 486.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004892/0.1253, allocations: 238.1 kB / 487.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.1273, allocations: 1.257 MB / 488.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007263/0.128, allocations: 471.7 kB / 488.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.1283, allocations: 167.9 kB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.1284, allocations: 4.234 kB / 489 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.1284, allocations: 34.8 kB / 489 MB, free: 12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.723e-06/0.1284, allocations: 0 / 489 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002951/0.1314, allocations: 1.022 MB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.1314, allocations: 55.41 kB / 490.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.1316, allocations: 245 kB / 490.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.1317, allocations: 29.7 kB / 490.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.1318, allocations: 176.3 kB / 490.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.403e-05/0.1319, allocations: 86.66 kB / 490.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/0.1319, allocations: 53.7 kB / 490.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1321, allocations: 326.8 kB / 491 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.1323, allocations: 103.9 kB / 491.1 MB, free: 9.832 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.1326, allocations: 152.1 kB / 491.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000451/0.133, allocations: 244.2 kB / 491.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.133, allocations: 0 / 491.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001112/0.1341, allocations: 491.1 kB / 492 MB, free: 8.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1342, allocations: 8 kB / 492 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1342, allocations: 0 / 492 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009855/0.1352, allocations: 245.5 kB / 492.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.1353, allocations: 35.92 kB / 492.3 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004335/0.1397, allocations: 3.688 MB / 496 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.1399, allocations: 35.7 kB / 496 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.1399, allocations: 12 kB / 496 MB, free: 4.617 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.0001578/0.1401, allocations: 140.8 kB / 496.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/0.1402, allocations: 23.72 kB / 496.2 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.1402, allocations: 38.86 kB / 496.2 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1402, allocations: 4.062 kB / 496.2 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.1403, allocations: 7.938 kB / 496.2 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1403, allocations: 0 / 496.2 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.1418, allocations: 0.886 MB / 497.1 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1419, allocations: 0 / 497.1 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.94e-05/0.1419, allocations: 16 kB / 497.1 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008957/0.1429, allocations: 245.9 kB / 497.4 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.1429, allocations: 4 kB / 497.4 MB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004106/0.147, allocations: 3.692 MB / 0.4893 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.147, allocations: 0 / 0.4893 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.1481, allocations: 0.5251 MB / 0.4898 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.1482, allocations: 124.7 kB / 0.4899 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.1483, allocations: 7.984 kB / 0.4899 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.1485, allocations: 23.98 kB / 0.49 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/0.1486, allocations: 31.95 kB / 0.49 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.1486, allocations: 4 kB / 0.49 GB, free: 14.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.1488, allocations: 180.4 kB / 0.4902 GB, free: 14.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1488, allocations: 0 / 0.4902 GB, free: 14.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004171/0.1492, allocations: 103.8 kB / 0.4903 GB, free: 14.17 MB / 382.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.001385/0.1506, allocations: 1.081 MB / 0.4913 GB, free: 13.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1516, allocations: 0.5595 MB / 0.4919 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1517, allocations: 0 / 0.4919 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006016/0.1523, allocations: 437.3 kB / 0.4923 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004212/0.1527, allocations: 48.88 kB / 0.4923 GB, free: 11.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/0.1573, allocations: 3.042 MB / 0.4953 GB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.1577, allocations: 0.7675 MB / 0.4961 GB, free: 8.023 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.1578, allocations: 26.22 kB / 0.4961 GB, free: 8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.1579, allocations: 79.36 kB / 0.4962 GB, free: 7.922 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1579, allocations: 0 / 0.4962 GB, free: 7.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.1861, allocations: 7.061 MB / 0.5031 GB, free: 1.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.003/9.189, allocations: 13.98 kB / 0.5031 GB, free: 1.012 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches