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.001951/0.001951, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.22/2.22, allocations: 227.4 MB / 246.9 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3559/0.3559, allocations: 46.11 MB / 344.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 80.66 kB / 417.5 MB, free: 20.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1699, allocations: 62.45 MB / 479.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.007204/0.1771, allocations: 2.977 MB / 482.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.1791, allocations: 0.6662 MB / 483.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003174/0.1795, allocations: 11.94 kB / 483.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000283/0.1798, allocations: 43.69 kB / 483.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003832/0.1802, allocations: 79.31 kB / 483.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.1806, allocations: 75.92 kB / 483.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007003/0.1813, allocations: 390.2 kB / 484.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003397/0.1816, allocations: 107.9 kB / 484.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002757/0.1819, allocations: 135.5 kB / 484.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00033/0.1823, allocations: 159.3 kB / 484.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.1824, allocations: 24 kB / 484.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.077e-05/0.1825, allocations: 24 kB / 484.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.1826, allocations: 63.75 kB / 484.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002689/0.1829, allocations: 155.2 kB / 484.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004133/0.1833, allocations: 291.2 kB / 485.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1833, allocations: 4 kB / 485.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1833, allocations: 0 / 485.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.1834, allocations: 0 / 485.1 MB, free: 0.5625 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.00174/0.1851, allocations: 0.6316 MB / 485.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/0.1852, allocations: 12.88 kB / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.1853, allocations: 32.56 kB / 485.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.1859, allocations: 273 kB / 486 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.1859, allocations: 20.88 kB / 486.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.847e-05/0.186, allocations: 36.38 kB / 486.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.187, allocations: 328.8 kB / 486.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.1871, allocations: 0 / 486.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.253e-05/0.1871, allocations: 15.94 kB / 486.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.1872, allocations: 4 kB / 486.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009085/0.1881, allocations: 242.1 kB / 486.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003424/0.1915, allocations: 1.257 MB / 487.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.1928, allocations: 469.2 kB / 488.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005144/0.1933, allocations: 160.4 kB / 488.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.1934, allocations: 4.234 kB / 488.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.1935, allocations: 38.8 kB / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.765e-06/0.1935, allocations: 0 / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.004997/0.1985, allocations: 1.012 MB / 489.6 MB, free: 11.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.245e-05/0.1986, allocations: 55.41 kB / 489.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004764/0.1991, allocations: 241 kB / 489.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.703e-05/0.1991, allocations: 29.69 kB / 489.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.1993, allocations: 172.3 kB / 490.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.1995, allocations: 98.58 kB / 490.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.1997, allocations: 53.7 kB / 490.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002355/0.1999, allocations: 334.8 kB / 490.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/0.2004, allocations: 103.9 kB / 490.7 MB, free: 10.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004692/0.2008, allocations: 148.1 kB / 490.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008374/0.2017, allocations: 244.7 kB / 491.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.2017, allocations: 0 / 491.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001987/0.2037, allocations: 486.6 kB / 491.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.2038, allocations: 8 kB / 491.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.2038, allocations: 0 / 491.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/0.2054, allocations: 245.5 kB / 491.8 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.2057, allocations: 27.98 kB / 491.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006569/0.2123, allocations: 3.414 MB / 495.2 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004178/0.2127, allocations: 39.77 kB / 495.3 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.2128, allocations: 16 kB / 495.3 MB, free: 5.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.0002872/0.2131, allocations: 141.7 kB / 495.4 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.2132, allocations: 23.72 kB / 495.4 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.931e-05/0.2133, allocations: 38.86 kB / 495.5 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2133, allocations: 0 / 495.5 MB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.2134, allocations: 4 kB / 495.5 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.2134, allocations: 0 / 495.5 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.2162, allocations: 0.8947 MB / 496.4 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.2162, allocations: 0 / 496.4 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.2163, allocations: 16 kB / 496.4 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001505/0.2179, allocations: 237.4 kB / 496.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.363e-05/0.2179, allocations: 8 kB / 496.6 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006316/0.2242, allocations: 3.425 MB / 0.4883 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2243, allocations: 0 / 0.4883 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.2262, allocations: 0.5368 MB / 0.4889 GB, free: 64 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.2264, allocations: 120.7 kB / 0.489 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.721e-05/0.2265, allocations: 4 kB / 0.489 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.227, allocations: 27.98 kB / 0.489 GB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.2271, allocations: 35.89 kB / 0.489 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/0.2272, allocations: 8 kB / 0.489 GB, free: 15.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002832/0.2275, allocations: 176.4 kB / 0.4892 GB, free: 15.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.565e-06/0.2275, allocations: 0 / 0.4892 GB, free: 15.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008499/0.2283, allocations: 111.8 kB / 0.4893 GB, free: 15.57 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.0001955/0.2285, allocations: 103.2 kB / 0.4894 GB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.2303, allocations: 0.5598 MB / 0.49 GB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.2303, allocations: 256 / 0.49 GB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.2314, allocations: 437 kB / 0.4904 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008481/0.2322, allocations: 44.42 kB / 0.4904 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.234, allocations: 0.6523 MB / 0.4911 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005495/0.2346, allocations: 0.7678 MB / 0.4918 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.733e-05/0.2347, allocations: 15.44 kB / 0.4918 GB, free: 12.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.2347, allocations: 4 kB / 0.4918 GB, free: 12.89 MB / 382.1 MB Notification: Performance of Templates: time 0.01358/0.2483, allocations: 5.552 MB / 0.4973 GB, free: 7.34 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