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.00126/0.00126, allocations: 117.3 kB / 17.99 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.4 MB / 247.1 MB, free: 10.82 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1963/0.1963, allocations: 46.1 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 76.97 kB / 417.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1224, allocations: 62.44 MB / 480.2 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004105/0.1265, allocations: 2.977 MB / 483.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.1276, allocations: 0.6739 MB / 483.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.1277, allocations: 4 kB / 483.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.1279, allocations: 43.69 kB / 483.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.128, allocations: 79.31 kB / 483.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001467/0.1282, allocations: 79.92 kB / 484 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003549/0.1285, allocations: 410.2 kB / 484.4 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.1287, allocations: 119.2 kB / 484.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.1289, allocations: 151.5 kB / 484.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.1291, allocations: 167.3 kB / 484.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.404e-05/0.1291, allocations: 36 kB / 484.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.662e-05/0.1292, allocations: 32 kB / 484.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.1292, allocations: 67.77 kB / 485 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.1294, allocations: 171.2 kB / 485.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.1296, allocations: 299.2 kB / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1296, allocations: 0 / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1296, allocations: 0 / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.1297, allocations: 0 / 485.4 MB, free: 324 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.0009152/0.1306, allocations: 0.6316 MB / 486.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1306, allocations: 13.11 kB / 486.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.355e-05/0.1307, allocations: 32.56 kB / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002774/0.131, allocations: 280 kB / 486.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.131, allocations: 16.94 kB / 486.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.131, allocations: 28.38 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005491/0.1316, allocations: 332.8 kB / 486.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1316, allocations: 3.938 kB / 486.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.1317, allocations: 12 kB / 486.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1317, allocations: 4 kB / 486.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.1321, allocations: 242.1 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.134, allocations: 1.253 MB / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006978/0.1347, allocations: 473.2 kB / 488.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002766/0.135, allocations: 157.3 kB / 488.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.1351, allocations: 240 / 488.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1351, allocations: 46.73 kB / 488.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 3.096e-06/0.1351, allocations: 4 kB / 488.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.003522/0.1386, allocations: 1.016 MB / 489.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.1387, allocations: 55.41 kB / 490 MB, free: 11.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.1389, allocations: 237 kB / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.1389, allocations: 29.7 kB / 490.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.139, allocations: 168.2 kB / 490.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.396e-05/0.1391, allocations: 94.64 kB / 490.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.624e-05/0.1392, allocations: 61.64 kB / 490.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1394, allocations: 334.8 kB / 490.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.1396, allocations: 99.95 kB / 491 MB, free: 10.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.1398, allocations: 144.1 kB / 491.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004971/0.1403, allocations: 248.7 kB / 491.4 MB, free: 10 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1403, allocations: 0 / 491.4 MB, free: 10 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001074/0.1414, allocations: 490.5 kB / 491.9 MB, free: 9.512 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1415, allocations: 11.98 kB / 491.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1415, allocations: 0 / 491.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008777/0.1423, allocations: 245.5 kB / 492.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.1425, allocations: 31.92 kB / 492.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004079/0.1466, allocations: 3.676 MB / 495.8 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.1468, allocations: 39.73 kB / 495.9 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.1468, allocations: 12 kB / 495.9 MB, free: 5.215 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.0001355/0.147, allocations: 141.8 kB / 496 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/0.147, allocations: 23.72 kB / 496 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.869e-05/0.1471, allocations: 30.86 kB / 496.1 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1471, allocations: 4 kB / 496.1 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1471, allocations: 7.938 kB / 496.1 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1471, allocations: 3.984 kB / 496.1 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.1486, allocations: 0.8869 MB / 497 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1486, allocations: 0 / 497 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.252e-05/0.1487, allocations: 27.92 kB / 497 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008059/0.1495, allocations: 237.9 kB / 497.2 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.1496, allocations: 7.984 kB / 497.2 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003848/0.1534, allocations: 3.68 MB / 0.4892 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1534, allocations: 4.062 kB / 0.4892 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009624/0.1544, allocations: 0.5329 MB / 0.4897 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.1545, allocations: 120.7 kB / 0.4898 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.383e-05/0.1546, allocations: 8 kB / 0.4898 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.1548, allocations: 27.98 kB / 0.4898 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.992e-05/0.1549, allocations: 27.95 kB / 0.4899 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1549, allocations: 8 kB / 0.4899 GB, free: 15.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000146/0.1551, allocations: 176.5 kB / 0.49 GB, free: 14.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1551, allocations: 3.938 kB / 0.49 GB, free: 14.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003832/0.1554, allocations: 107.8 kB / 0.4901 GB, free: 14.76 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.0001143/0.1556, allocations: 107.2 kB / 0.4902 GB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009111/0.1565, allocations: 0.5638 MB / 0.4908 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.1565, allocations: 3.984 kB / 0.4908 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005441/0.1571, allocations: 429.1 kB / 0.4912 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.1575, allocations: 53 kB / 0.4913 GB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009383/0.1584, allocations: 0.6572 MB / 0.4919 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.1588, allocations: 0.7677 MB / 0.4927 GB, free: 12.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.1588, allocations: 23.42 kB / 0.4927 GB, free: 12.05 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1588, allocations: 0 / 0.4927 GB, free: 12.05 MB / 382.1 MB Notification: Performance of Templates: time 0.4885/0.6474, allocations: 5.554 MB / 0.4981 GB, free: 6.508 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 -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