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.001345/0.001345, allocations: 107.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.4 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2155/0.2155, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 78.38 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.1005, allocations: 62.45 MB / 479.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003961/0.1045, allocations: 2.962 MB / 482.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1058, allocations: 0.6818 MB / 483.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.1061, allocations: 11.94 kB / 483.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000164/0.1063, allocations: 35.69 kB / 483.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002228/0.1065, allocations: 83.31 kB / 483.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001709/0.1067, allocations: 75.92 kB / 483.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004289/0.1071, allocations: 406.2 kB / 483.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.1073, allocations: 123.1 kB / 484 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.1075, allocations: 151.5 kB / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002024/0.1077, allocations: 171.3 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.026e-05/0.1078, allocations: 32 kB / 484.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.254e-05/0.1078, allocations: 36 kB / 484.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.896e-05/0.1079, allocations: 75.75 kB / 484.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.1081, allocations: 167.2 kB / 484.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003418/0.1084, allocations: 386.7 kB / 485 MB, free: 120 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1084, allocations: 0 / 485 MB, free: 120 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1084, allocations: 0 / 485 MB, free: 120 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1084, allocations: 0 / 485 MB, free: 120 kB / 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.0009569/0.1094, allocations: 0.6277 MB / 485.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.1094, allocations: 13.05 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.124e-05/0.1095, allocations: 70.72 kB / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.803e-05/0.1096, allocations: 36.47 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.1099, allocations: 272.1 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.1099, allocations: 20.88 kB / 486 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.094e-05/0.11, allocations: 28.38 kB / 486 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005888/0.1105, allocations: 328.6 kB / 486.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1106, allocations: 4 kB / 486.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1106, allocations: 12 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.1106, allocations: 4 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005077/0.1111, allocations: 246 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.113, allocations: 1.257 MB / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007115/0.1138, allocations: 467.7 kB / 488.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/0.1141, allocations: 157.3 kB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.1141, allocations: 4.234 kB / 488.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1141, allocations: 38.78 kB / 488.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.483e-06/0.1141, allocations: 0 / 488.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002788/0.1169, allocations: 1.016 MB / 489.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.919e-05/0.117, allocations: 55.41 kB / 489.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.1172, allocations: 244.9 kB / 489.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1173, allocations: 29.7 kB / 489.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.1174, allocations: 168.3 kB / 490 MB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.853e-05/0.1174, allocations: 90.66 kB / 490.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.42e-05/0.1175, allocations: 53.7 kB / 490.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1176, allocations: 338.8 kB / 490.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.1179, allocations: 103.9 kB / 490.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.1181, allocations: 140.1 kB / 490.7 MB, free: 10 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004438/0.1186, allocations: 252.7 kB / 491 MB, free: 9.738 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1186, allocations: 0 / 491 MB, free: 9.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001079/0.1197, allocations: 486.6 kB / 491.4 MB, free: 9.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1197, allocations: 11.94 kB / 491.5 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1197, allocations: 0 / 491.5 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009129/0.1206, allocations: 249.5 kB / 491.7 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.1208, allocations: 27.98 kB / 491.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003908/0.1247, allocations: 3.696 MB / 495.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.1249, allocations: 35.67 kB / 495.5 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.1249, allocations: 8.062 kB / 495.5 MB, free: 4.941 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.1251, allocations: 145 kB / 495.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.207e-05/0.1251, allocations: 23.72 kB / 495.6 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.994e-05/0.1252, allocations: 34.86 kB / 495.7 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1252, allocations: 4 kB / 495.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.1252, allocations: 7.938 kB / 495.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1253, allocations: 0 / 495.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.1268, allocations: 0.8909 MB / 496.6 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1268, allocations: 0 / 496.6 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.4e-05/0.1269, allocations: 19.98 kB / 496.6 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008418/0.1277, allocations: 233.5 kB / 496.8 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.1277, allocations: 4 kB / 496.8 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003959/0.1317, allocations: 3.692 MB / 0.4888 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1317, allocations: 0 / 0.4888 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.1328, allocations: 0.5368 MB / 0.4893 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.1329, allocations: 120.7 kB / 0.4894 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.1329, allocations: 4 kB / 0.4894 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.1332, allocations: 31.97 kB / 0.4894 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.011e-05/0.1333, allocations: 27.95 kB / 0.4895 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.1333, allocations: 8 kB / 0.4895 GB, free: 14.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001689/0.1335, allocations: 180.4 kB / 0.4897 GB, free: 14.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1335, allocations: 0 / 0.4897 GB, free: 14.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.1339, allocations: 103.8 kB / 0.4898 GB, free: 14.49 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.001302/0.1352, allocations: 1.073 MB / 0.4908 GB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.1363, allocations: 0.5638 MB / 0.4914 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.1363, allocations: 0 / 0.4914 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005969/0.1369, allocations: 449.1 kB / 0.4918 GB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.1374, allocations: 47.02 kB / 0.4918 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004622/0.142, allocations: 3.16 MB / 0.4949 GB, free: 9.016 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.1424, allocations: 0.7675 MB / 0.4957 GB, free: 8.223 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.1425, allocations: 18.3 kB / 0.4957 GB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.1426, allocations: 71.41 kB / 0.4957 GB, free: 8.133 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1426, allocations: 0 / 0.4957 GB, free: 8.133 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02335/0.166, allocations: 6.908 MB / 0.5025 GB, free: 1.434 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.1662, allocations: 243.6 kB / 0.5027 GB, free: 1.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/2.064, allocations: 8 kB / 0.5027 GB, free: 1.168 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches