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.001169/0.001169, allocations: 109.2 kB / 17.33 MB, free: 6 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.001059/0.001059, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.305/1.305, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.1933/0.1933, allocations: 44.18 MB / 336.2 MB, free: 2.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 62.19 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1101, allocations: 60.82 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003639/0.1138, allocations: 2.953 MB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008937/0.1147, allocations: 0.6428 MB / 472.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1148, allocations: 7.938 kB / 472.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.115, allocations: 39.69 kB / 472.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.1151, allocations: 79.38 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.1153, allocations: 79.92 kB / 472.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.1156, allocations: 402.3 kB / 473 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.1159, allocations: 131.1 kB / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.116, allocations: 143.5 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.1162, allocations: 167.4 kB / 473.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.1162, allocations: 32 kB / 473.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.95e-05/0.1163, allocations: 36 kB / 473.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.843e-05/0.1163, allocations: 71.75 kB / 473.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.1165, allocations: 167.2 kB / 473.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003027/0.1168, allocations: 386.7 kB / 474.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1168, allocations: 0 / 474.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1168, allocations: 0 / 474.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1168, allocations: 0 / 474.1 MB, free: 9.301 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.0009082/0.1177, allocations: 0.6355 MB / 474.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1178, allocations: 15.97 kB / 474.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.343e-05/0.1178, allocations: 62.72 kB / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.412e-05/0.1179, allocations: 36.47 kB / 474.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.1182, allocations: 268.2 kB / 475.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.1182, allocations: 24.94 kB / 475.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.1183, allocations: 24.38 kB / 475.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005625/0.1188, allocations: 340.5 kB / 475.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1189, allocations: 0 / 475.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.1189, allocations: 12 kB / 475.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.1189, allocations: 8 kB / 475.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004803/0.1194, allocations: 242.1 kB / 475.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.1212, allocations: 1.253 MB / 477 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006831/0.1219, allocations: 473.2 kB / 477.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.1222, allocations: 159.9 kB / 477.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1222, allocations: 4.234 kB / 477.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.1223, allocations: 42.78 kB / 477.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.1223, allocations: 0 / 477.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002722/0.125, allocations: 1.007 MB / 478.7 MB, free: 4.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.1251, allocations: 59.41 kB / 478.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.1253, allocations: 241 kB / 479 MB, free: 4.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.1253, allocations: 29.7 kB / 479 MB, free: 4.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.271e-05/0.1254, allocations: 172.2 kB / 479.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.635e-05/0.1255, allocations: 86.66 kB / 479.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.554e-05/0.1256, allocations: 57.7 kB / 479.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1257, allocations: 338.8 kB / 479.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.1259, allocations: 103.9 kB / 479.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.1262, allocations: 140.2 kB / 479.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004361/0.1266, allocations: 252.7 kB / 480.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1266, allocations: 4 kB / 480.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001058/0.1277, allocations: 486.6 kB / 480.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1277, allocations: 4 kB / 480.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.1277, allocations: 0 / 480.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009146/0.1287, allocations: 249.5 kB / 480.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.1288, allocations: 27.98 kB / 480.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004278/0.1331, allocations: 3.681 MB / 484.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.1334, allocations: 43.77 kB / 484.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.052e-05/0.1334, allocations: 12 kB / 484.6 MB, free: 14.12 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.0001982/0.1336, allocations: 137.8 kB / 484.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.28e-05/0.1337, allocations: 27.62 kB / 484.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.972e-05/0.1338, allocations: 38.86 kB / 484.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1338, allocations: 3.938 kB / 484.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.1338, allocations: 7.938 kB / 484.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1338, allocations: 4 kB / 484.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.1355, allocations: 0.8898 MB / 485.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1356, allocations: 0 / 485.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.117e-05/0.1357, allocations: 19.98 kB / 485.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008957/0.1366, allocations: 237.5 kB / 486 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.1366, allocations: 4 kB / 486 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004252/0.1409, allocations: 3.696 MB / 489.7 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1409, allocations: 0 / 489.7 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.142, allocations: 0.5329 MB / 490.2 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.1422, allocations: 124.7 kB / 490.3 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.1422, allocations: 8 kB / 490.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.1425, allocations: 31.97 kB / 490.4 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.1426, allocations: 27.95 kB / 490.4 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.1426, allocations: 8 kB / 490.4 MB, free: 7.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001759/0.1428, allocations: 180.4 kB / 490.6 MB, free: 7.758 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1428, allocations: 0 / 490.6 MB, free: 7.758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005219/0.1433, allocations: 107.8 kB / 490.7 MB, free: 7.652 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.001392/0.1447, allocations: 1.065 MB / 491.8 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001158/0.1459, allocations: 0.5675 MB / 492.3 MB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1459, allocations: 0 / 492.3 MB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006426/0.1466, allocations: 437.3 kB / 492.8 MB, free: 5.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.1471, allocations: 44.36 kB / 492.8 MB, free: 5.465 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/0.1519, allocations: 3.151 MB / 495.9 MB, free: 2.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.1523, allocations: 0.76 MB / 496.7 MB, free: 1.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.1524, allocations: 26.28 kB / 496.7 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.1526, allocations: 83.34 kB / 496.8 MB, free: 1.305 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1526, allocations: 3.938 kB / 496.8 MB, free: 1.301 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.1856, allocations: 6.903 MB / 0.4919 GB, free: 10.6 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002528/0.1859, allocations: 246.2 kB / 0.4921 GB, free: 10.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.085, allocations: 0 / 0.4921 GB, free: 10.33 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