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.001129/0.001129, allocations: 104.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.3 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.2064/0.2064, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 74.69 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1086, allocations: 62.44 MB / 479.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004144/0.1128, allocations: 2.966 MB / 482.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1141, allocations: 0.6817 MB / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002451/0.1144, allocations: 7.938 kB / 483 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1146, allocations: 43.69 kB / 483.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.1149, allocations: 75.31 kB / 483.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.1151, allocations: 79.92 kB / 483.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004116/0.1155, allocations: 386.2 kB / 483.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.1157, allocations: 107.8 kB / 483.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.1159, allocations: 143.5 kB / 483.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.1161, allocations: 159.3 kB / 484 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.356e-05/0.1162, allocations: 24 kB / 484 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.513e-05/0.1163, allocations: 24 kB / 484.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.988e-05/0.1163, allocations: 59.77 kB / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.1165, allocations: 155.2 kB / 484.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003041/0.1168, allocations: 374.6 kB / 484.6 MB, free: 388 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1168, allocations: 4 kB / 484.6 MB, free: 384 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1168, allocations: 0 / 484.6 MB, free: 384 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1168, allocations: 4 kB / 484.6 MB, free: 380 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.00105/0.1179, allocations: 0.6199 MB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1179, allocations: 12.86 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.132e-05/0.118, allocations: 62.73 kB / 485.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.147e-05/0.1181, allocations: 40.47 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.1184, allocations: 269 kB / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.1185, allocations: 28.92 kB / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.1185, allocations: 24.38 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000592/0.1191, allocations: 328.6 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1191, allocations: 0 / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.996e-05/0.1192, allocations: 12 kB / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.1192, allocations: 8 kB / 486 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005093/0.1197, allocations: 246.1 kB / 486.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1217, allocations: 1.249 MB / 487.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007387/0.1224, allocations: 469.3 kB / 488 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.1227, allocations: 161.2 kB / 488.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.1228, allocations: 8.234 kB / 488.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.1228, allocations: 38.8 kB / 488.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.382e-06/0.1228, allocations: 0 / 488.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002774/0.1256, allocations: 1.014 MB / 489.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.1257, allocations: 55.34 kB / 489.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/0.1259, allocations: 241 kB / 489.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.1259, allocations: 33.64 kB / 489.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1261, allocations: 176.2 kB / 489.7 MB, free: 11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.966e-05/0.1261, allocations: 94.64 kB / 489.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-05/0.1262, allocations: 53.7 kB / 489.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1263, allocations: 330.8 kB / 490.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.1266, allocations: 95.95 kB / 490.3 MB, free: 10.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.1268, allocations: 156.1 kB / 490.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004462/0.1273, allocations: 240.7 kB / 490.6 MB, free: 10 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.1273, allocations: 0 / 490.6 MB, free: 10 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001077/0.1284, allocations: 498.6 kB / 491.1 MB, free: 9.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1284, allocations: 4 kB / 491.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1284, allocations: 7.938 kB / 491.1 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009099/0.1293, allocations: 237.5 kB / 491.4 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.1295, allocations: 27.98 kB / 491.4 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003644/0.1332, allocations: 3.41 MB / 494.8 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.1334, allocations: 39.73 kB / 494.8 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.1334, allocations: 12 kB / 494.9 MB, free: 5.496 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.0001429/0.1335, allocations: 141.7 kB / 495 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.301e-05/0.1336, allocations: 23.72 kB / 495 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.529e-05/0.1337, allocations: 34.86 kB / 495.1 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1337, allocations: 4 kB / 495.1 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.1337, allocations: 8 kB / 495.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1337, allocations: 3.938 kB / 495.1 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.1352, allocations: 0.8938 MB / 496 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1352, allocations: 0 / 496 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.57e-05/0.1353, allocations: 27.97 kB / 496 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008276/0.1362, allocations: 237.9 kB / 496.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.1362, allocations: 4 kB / 496.2 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/0.1398, allocations: 3.413 MB / 499.6 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1398, allocations: 0 / 499.6 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.1408, allocations: 0.5329 MB / 0.4885 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.1409, allocations: 132.6 kB / 0.4886 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.141, allocations: 3.938 kB / 0.4886 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.1412, allocations: 27.98 kB / 0.4886 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.21e-05/0.1413, allocations: 31.89 kB / 0.4886 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.1413, allocations: 15.94 kB / 0.4887 GB, free: 15.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001528/0.1415, allocations: 172.5 kB / 0.4888 GB, free: 15.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1415, allocations: 0 / 0.4888 GB, free: 15.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004305/0.1419, allocations: 107.8 kB / 0.4889 GB, free: 15.31 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.001266/0.1432, allocations: 1.069 MB / 0.49 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000973/0.1442, allocations: 0.5599 MB / 0.4905 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1442, allocations: 0 / 0.4905 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005782/0.1448, allocations: 437.3 kB / 0.4909 GB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004596/0.1453, allocations: 44.88 kB / 0.491 GB, free: 13.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004419/0.1497, allocations: 3.141 MB / 0.494 GB, free: 9.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.15, allocations: 0.7714 MB / 0.4948 GB, free: 9.082 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.1502, allocations: 18.3 kB / 0.4948 GB, free: 9.062 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.1503, allocations: 75.41 kB / 0.4949 GB, free: 8.988 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1503, allocations: 0 / 0.4949 GB, free: 8.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01854/0.1688, allocations: 6.656 MB / 0.5014 GB, free: 2.512 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.169, allocations: 244.1 kB / 0.5016 GB, free: 2.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.896/2.065, allocations: 2.125 kB / 0.5016 GB, free: 2.25 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