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.001085/0.001086, allocations: 105.5 kB / 17.63 MB, free: 5.344 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.00104/0.00104, allocations: 192 kB / 18.56 MB, free: 4.434 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.278/1.278, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.226/0.226, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 69.3 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.09519, allocations: 60.81 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003769/0.09899, allocations: 2.906 MB / 472.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.1001, allocations: 0.6467 MB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.1003, allocations: 4 kB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.1005, allocations: 59.44 kB / 473 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.1007, allocations: 87.19 kB / 473.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.1009, allocations: 91.86 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003656/0.1012, allocations: 406.3 kB / 473.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.1015, allocations: 127.1 kB / 473.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.1016, allocations: 147.6 kB / 473.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.1018, allocations: 163.3 kB / 474 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.662e-05/0.1019, allocations: 36 kB / 474 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.891e-05/0.102, allocations: 32 kB / 474 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.234e-05/0.102, allocations: 79.69 kB / 474.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.1022, allocations: 167.2 kB / 474.3 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000321/0.1025, allocations: 390.7 kB / 474.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1025, allocations: 0 / 474.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1025, allocations: 0 / 474.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1025, allocations: 0 / 474.7 MB, free: 8.934 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.0009799/0.1035, allocations: 0.6277 MB / 475.3 MB, free: 8.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1036, allocations: 8.031 kB / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.618e-05/0.1036, allocations: 66.72 kB / 475.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.549e-05/0.1037, allocations: 40.47 kB / 475.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.104, allocations: 264.1 kB / 475.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.104, allocations: 20.94 kB / 475.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.897e-05/0.1041, allocations: 36.38 kB / 475.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005575/0.1046, allocations: 328.6 kB / 476 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1047, allocations: 0 / 476 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.1047, allocations: 12 kB / 476 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1047, allocations: 4 kB / 476 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000489/0.1052, allocations: 246.1 kB / 476.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.1071, allocations: 1.257 MB / 477.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007516/0.1079, allocations: 471.2 kB / 478 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.1082, allocations: 165.2 kB / 478.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.1082, allocations: 240 / 478.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.1082, allocations: 42.78 kB / 478.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.092e-06/0.1082, allocations: 0 / 478.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002911/0.1112, allocations: 1.011 MB / 479.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.1112, allocations: 55.41 kB / 479.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.1115, allocations: 244.9 kB / 479.5 MB, free: 3.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1115, allocations: 33.7 kB / 479.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.724e-05/0.1116, allocations: 168.3 kB / 479.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.222e-05/0.1117, allocations: 94.64 kB / 479.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.324e-05/0.1117, allocations: 49.7 kB / 479.9 MB, free: 3.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1119, allocations: 334.8 kB / 480.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.1121, allocations: 103.9 kB / 480.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.1124, allocations: 140.2 kB / 480.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004513/0.1128, allocations: 252.1 kB / 480.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.1128, allocations: 4 kB / 480.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001083/0.1139, allocations: 490.5 kB / 481.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1139, allocations: 8 kB / 481.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.114, allocations: 3.984 kB / 481.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009584/0.1149, allocations: 237.5 kB / 481.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.1151, allocations: 35.92 kB / 481.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003898/0.119, allocations: 3.689 MB / 485.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.1192, allocations: 35.67 kB / 485.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.1192, 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.0001301/0.1194, allocations: 137.8 kB / 485.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.1194, allocations: 31.69 kB / 485.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.604e-05/0.1195, allocations: 38.8 kB / 485.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1195, allocations: 4 kB / 485.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.1195, allocations: 7.938 kB / 485.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1195, allocations: 0 / 485.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.1211, allocations: 0.8901 MB / 486.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1211, allocations: 4 kB / 486.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.1212, allocations: 19.98 kB / 486.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008691/0.1221, allocations: 233.4 kB / 486.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.1221, allocations: 4 kB / 486.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00388/0.126, allocations: 3.7 MB / 490.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.126, allocations: 0 / 490.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.1271, allocations: 0.528 MB / 490.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.1272, allocations: 120.7 kB / 490.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.1272, allocations: 8 kB / 490.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.1275, allocations: 31.97 kB / 490.9 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.1276, allocations: 27.95 kB / 490.9 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.1276, allocations: 8 kB / 490.9 MB, free: 7.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.1277, allocations: 176.4 kB / 491.1 MB, free: 7.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1277, allocations: 4 kB / 491.1 MB, free: 7.398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003876/0.1281, allocations: 107.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.00131/0.1295, allocations: 1.073 MB / 492.3 MB, free: 6.188 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009716/0.1304, allocations: 0.5597 MB / 492.9 MB, free: 5.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1305, allocations: 4.062 kB / 492.9 MB, free: 5.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005829/0.131, allocations: 437 kB / 493.3 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.1315, allocations: 40.42 kB / 493.3 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00424/0.1357, allocations: 3.041 MB / 496.4 MB, free: 1.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/0.136, allocations: 0.7639 MB / 497.1 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.588e-05/0.1361, allocations: 22.28 kB / 497.2 MB, free: 1.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.1362, allocations: 75.41 kB / 497.2 MB, free: 1.055 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1363, allocations: 3.938 kB / 497.2 MB, free: 1.051 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.1641, allocations: 7.055 MB / 0.4925 GB, free: 10.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.954/9.119, allocations: 23 kB / 0.4925 GB, free: 10.13 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