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.00128/0.00128, allocations: 109 kB / 17.21 MB, free: 6.289 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.001392/0.001392, allocations: 194 kB / 18.12 MB, free: 5.383 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.36/1.36, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.2052/0.2052, allocations: 44.17 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 65.3 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1033, allocations: 60.82 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003901/0.1072, allocations: 2.953 MB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1084, allocations: 0.6389 MB / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.1087, allocations: 7.938 kB / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.1089, allocations: 43.69 kB / 472.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.1091, allocations: 75.38 kB / 472.3 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.1093, allocations: 75.92 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004271/0.1097, allocations: 390.3 kB / 472.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.11, allocations: 111.8 kB / 472.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1102, allocations: 135.5 kB / 473 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.1104, allocations: 155.4 kB / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.07e-05/0.1104, allocations: 24 kB / 473.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.47e-05/0.1105, allocations: 24 kB / 473.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.48e-05/0.1106, allocations: 67.73 kB / 473.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.1107, allocations: 155.2 kB / 473.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003065/0.111, allocations: 366.7 kB / 473.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.111, allocations: 0 / 473.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.111, allocations: 0 / 473.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.1111, allocations: 4 kB / 473.8 MB, free: 9.52 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.001073/0.1121, allocations: 0.6393 MB / 474.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.1122, allocations: 8.031 kB / 474.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.842e-05/0.1123, allocations: 62.67 kB / 474.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.753e-05/0.1124, allocations: 44.45 kB / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.1127, allocations: 264.2 kB / 474.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.1127, allocations: 20.94 kB / 474.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.1128, allocations: 28.31 kB / 474.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006153/0.1134, allocations: 332.6 kB / 475.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1134, allocations: 0 / 475.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.1135, allocations: 12 kB / 475.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.1135, allocations: 8 kB / 475.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005179/0.114, allocations: 246 kB / 475.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002095/0.1161, allocations: 1.246 MB / 476.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007217/0.1168, allocations: 473.2 kB / 477.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002964/0.1171, allocations: 157.3 kB / 477.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.1172, allocations: 4.234 kB / 477.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.1172, allocations: 42.8 kB / 477.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.1172, allocations: 0 / 477.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002836/0.1201, allocations: 1.014 MB / 478.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.1201, allocations: 55.41 kB / 478.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.1204, allocations: 244.9 kB / 478.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.1204, allocations: 33.7 kB / 478.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1205, allocations: 164.3 kB / 478.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.474e-05/0.1206, allocations: 94.66 kB / 479 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.717e-05/0.1207, allocations: 53.7 kB / 479 MB, free: 3.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1208, allocations: 334.8 kB / 479.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002341/0.1211, allocations: 103.9 kB / 479.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.1213, allocations: 148.2 kB / 479.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004673/0.1218, allocations: 252.7 kB / 479.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1218, allocations: 0 / 479.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001088/0.1229, allocations: 490.6 kB / 480.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1229, allocations: 6.5 kB / 480.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.123, allocations: 4 kB / 480.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009299/0.1239, allocations: 241.5 kB / 480.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.124, allocations: 27.98 kB / 480.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003688/0.1277, allocations: 3.417 MB / 484 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.128, allocations: 35.67 kB / 484 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.128, allocations: 8.062 kB / 484 MB, free: 14.63 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.000147/0.1281, allocations: 149.7 kB / 484.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.889e-05/0.1282, allocations: 23.72 kB / 484.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.923e-05/0.1283, allocations: 38.8 kB / 484.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1283, allocations: 4 kB / 484.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.1283, allocations: 4 kB / 484.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1283, allocations: 3.984 kB / 484.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.1299, allocations: 0.8898 MB / 485.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.1299, allocations: 7.938 kB / 485.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.13, allocations: 16 kB / 485.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008558/0.1308, allocations: 241.5 kB / 485.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.1309, allocations: 0 / 485.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003574/0.1344, allocations: 3.409 MB / 488.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1345, allocations: 0 / 488.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009997/0.1355, allocations: 0.5368 MB / 489.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.1356, allocations: 124.6 kB / 489.5 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.85e-05/0.1356, allocations: 4 kB / 489.5 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.1359, allocations: 31.91 kB / 489.5 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.07e-05/0.136, allocations: 27.97 kB / 489.5 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.136, allocations: 11.92 kB / 489.6 MB, free: 8.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.1361, allocations: 180.4 kB / 489.7 MB, free: 8.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1362, allocations: 0 / 489.7 MB, free: 8.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004268/0.1366, allocations: 107.8 kB / 489.8 MB, free: 8.453 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.001263/0.1379, allocations: 1.073 MB / 490.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009532/0.1388, allocations: 0.5519 MB / 491.5 MB, free: 6.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1388, allocations: 0 / 491.5 MB, free: 6.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005868/0.1394, allocations: 437.2 kB / 491.9 MB, free: 6.316 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.1399, allocations: 44.41 kB / 491.9 MB, free: 6.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004345/0.1442, allocations: 3.157 MB / 495.1 MB, free: 2.992 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.1446, allocations: 0.7599 MB / 495.8 MB, free: 2.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.1447, allocations: 22.3 kB / 495.9 MB, free: 2.188 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.1448, allocations: 75.41 kB / 495.9 MB, free: 2.113 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1448, allocations: 0 / 495.9 MB, free: 2.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.1631, allocations: 6.666 MB / 0.4908 GB, free: 11.63 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.1633, allocations: 238.8 kB / 0.4911 GB, free: 11.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.871/2.034, allocations: 0 / 0.4911 GB, free: 11.37 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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