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: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001146, allocations: 114.8 kB / 18.41 MB, free: 4.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 216.5 kB / 19.36 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2079/0.2079, allocations: 46.11 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 76.69 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 62.45 MB / 481.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003791/0.1157, allocations: 2.927 MB / 484.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009893/0.1167, allocations: 0.6739 MB / 485.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1168, allocations: 8 kB / 485.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.117, allocations: 55.44 kB / 485.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.1171, allocations: 91.17 kB / 485.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001669/0.1173, allocations: 91.81 kB / 485.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000364/0.1177, allocations: 414.2 kB / 485.7 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.1179, allocations: 111 kB / 485.8 MB, free: 128 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.118, allocations: 155.5 kB / 486 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.1182, allocations: 163.3 kB / 486.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-05/0.1183, allocations: 36 kB / 486.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.806e-05/0.1183, allocations: 36 kB / 486.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.647e-05/0.1184, allocations: 79.75 kB / 486.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.1186, allocations: 159.3 kB / 486.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000338/0.1189, allocations: 394.6 kB / 486.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1189, allocations: 4 kB / 486.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1189, allocations: 0 / 486.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1189, allocations: 0 / 486.8 MB, free: 15.12 MB / 366.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.0009394/0.1199, allocations: 0.6276 MB / 487.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1199, allocations: 9.109 kB / 487.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.885e-05/0.12, allocations: 36.56 kB / 487.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.1204, allocations: 288.9 kB / 487.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.1204, allocations: 16.94 kB / 487.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.1205, allocations: 32.31 kB / 487.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005333/0.121, allocations: 332.8 kB / 488.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.121, allocations: 0 / 488.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.864e-05/0.121, allocations: 12 kB / 488.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1211, allocations: 8 kB / 488.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004675/0.1215, allocations: 238.1 kB / 488.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.1234, allocations: 1.253 MB / 489.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006773/0.1241, allocations: 472.3 kB / 490.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/0.1244, allocations: 157.3 kB / 490.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.1244, allocations: 8.172 kB / 490.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.1245, allocations: 38.8 kB / 490.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.443e-06/0.1245, allocations: 0 / 490.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.002605/0.1271, allocations: 1.022 MB / 491.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.1271, allocations: 55.41 kB / 491.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.1274, allocations: 237 kB / 491.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.1274, allocations: 29.7 kB / 491.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.055e-05/0.1275, allocations: 172.2 kB / 491.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.679e-05/0.1276, allocations: 90.64 kB / 491.9 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.461e-05/0.1277, allocations: 53.7 kB / 492 MB, free: 9.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1278, allocations: 342.8 kB / 492.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.128, allocations: 99.94 kB / 492.4 MB, free: 9.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.1283, allocations: 144.1 kB / 492.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.1287, allocations: 244.1 kB / 492.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1287, allocations: 0 / 492.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001008/0.1297, allocations: 499.1 kB / 493.3 MB, free: 8.305 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1297, allocations: 4 kB / 493.3 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1297, allocations: 0 / 493.3 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000864/0.1306, allocations: 245.5 kB / 493.5 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.1308, allocations: 35.86 kB / 493.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003846/0.1346, allocations: 3.677 MB / 497.2 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.1348, allocations: 35.78 kB / 497.3 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.1349, allocations: 15.98 kB / 497.3 MB, free: 4.012 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.0001532/0.135, allocations: 137.8 kB / 497.4 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.987e-05/0.1351, allocations: 23.72 kB / 497.4 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.61e-05/0.1352, allocations: 38.86 kB / 497.5 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1352, allocations: 0 / 497.5 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.1352, allocations: 11.94 kB / 497.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1352, allocations: 0 / 497.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.1366, allocations: 0.8826 MB / 498.4 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.1367, allocations: 4 kB / 498.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.278e-05/0.1368, allocations: 23.92 kB / 498.4 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007761/0.1375, allocations: 245.4 kB / 498.6 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.1376, allocations: 4 kB / 498.6 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003697/0.1413, allocations: 3.681 MB / 0.4905 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1413, allocations: 80 / 0.4905 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.1423, allocations: 0.526 MB / 0.4911 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.1425, allocations: 128.7 kB / 0.4912 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.1426, allocations: 4 kB / 0.4912 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.1428, allocations: 27.97 kB / 0.4912 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.1429, allocations: 27.91 kB / 0.4912 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.143, allocations: 8 kB / 0.4912 GB, free: 13.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001862/0.1431, allocations: 176.5 kB / 0.4914 GB, free: 13.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1432, allocations: 0 / 0.4914 GB, free: 13.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004392/0.1436, allocations: 115.8 kB / 0.4915 GB, free: 13.56 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.0001291/0.1437, allocations: 103.2 kB / 0.4916 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009731/0.1447, allocations: 0.5521 MB / 0.4922 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1447, allocations: 4 kB / 0.4922 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005991/0.1453, allocations: 433.2 kB / 0.4926 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.1457, allocations: 50.73 kB / 0.4926 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009967/0.1467, allocations: 0.5108 MB / 0.4931 GB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.1471, allocations: 0.7677 MB / 0.4939 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.539e-05/0.1472, allocations: 18.3 kB / 0.4939 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.1473, allocations: 19.44 kB / 0.4939 GB, free: 11 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1473, allocations: 4 kB / 0.4939 GB, free: 11 MB / 382.1 MB Notification: Performance of Templates: time 0.008715/0.156, allocations: 4.551 MB / 0.4984 GB, free: 6.488 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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