Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009554/0.0009555, allocations: 169.5 kB / 8.743 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 221.5 MB / 230.7 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009619/0.0009613, allocations: 92.48 kB / 281.6 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1846/0.1846, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.368e-05/1.37e-05, allocations: 224 / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1166, allocations: 61.93 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.385/0.5016, allocations: 88 MB / 0.5806 GB, free: 8.523 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.502, allocations: 75.95 kB / 0.5807 GB, free: 8.449 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01281/0.5148, allocations: 4.761 MB / 0.5853 GB, free: 3.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5149, allocations: 0 / 0.5853 GB, free: 3.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.5149, allocations: 8 kB / 0.5854 GB, free: 3.672 MB / 394.7 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.0008267/0.5157, allocations: 0.5568 MB / 0.5859 GB, free: 3.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.5158, allocations: 11.98 kB / 0.5859 GB, free: 3.059 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.43e-05/0.5159, allocations: 38.58 kB / 0.5859 GB, free: 3.023 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.5162, allocations: 258.5 kB / 0.5862 GB, free: 2.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.5162, allocations: 8 kB / 0.5862 GB, free: 2.723 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.5162, allocations: 19.95 kB / 0.5862 GB, free: 2.703 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003459/0.5166, allocations: 189.1 kB / 0.5864 GB, free: 2.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004383/0.517, allocations: 255.5 kB / 0.5866 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.5171, allocations: 0 / 0.5866 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.5171, allocations: 0 / 0.5866 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.5171, allocations: 8 kB / 0.5866 GB, free: 2.246 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.5192, allocations: 1.226 MB / 0.5878 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005701/0.5198, allocations: 425.2 kB / 0.5883 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.5201, allocations: 177.2 kB / 0.5884 GB, free: 324 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.5201, allocations: 4.234 kB / 0.5884 GB, free: 320 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.5202, allocations: 38.62 kB / 0.5885 GB, free: 276 kB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.763e-06/0.5202, allocations: 0 / 0.5885 GB, free: 276 kB / 394.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009087/0.5211, allocations: 374.8 kB / 0.5888 GB, free: 15.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.5212, allocations: 59.41 kB / 0.5889 GB, free: 15.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.5214, allocations: 182.7 kB / 0.589 GB, free: 15.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.5214, allocations: 25.7 kB / 0.5891 GB, free: 15.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.5215, allocations: 168.6 kB / 0.5892 GB, free: 15.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.894e-05/0.5216, allocations: 90.66 kB / 0.5893 GB, free: 15.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.5216, allocations: 0 / 0.5893 GB, free: 15.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5217, allocations: 330.8 kB / 0.5896 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.5219, allocations: 72.56 kB / 0.5897 GB, free: 14.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.522, allocations: 103.4 kB / 0.5898 GB, free: 14.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.5222, allocations: 83.83 kB / 0.5899 GB, free: 14.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.5222, allocations: 0 / 0.5899 GB, free: 14.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008491/0.523, allocations: 410.9 kB / 0.5903 GB, free: 14.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.5231, allocations: 4 kB / 0.5903 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.5231, allocations: 0 / 0.5903 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008104/0.5239, allocations: 221.5 kB / 0.5905 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.5241, allocations: 31.92 kB / 0.5905 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/0.5271, allocations: 3.146 MB / 0.5936 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.5274, allocations: 31.92 kB / 0.5936 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.5274, allocations: 4 kB / 0.5936 GB, free: 10.67 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001321/0.5275, allocations: 108.9 kB / 0.5937 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.887e-05/0.5276, allocations: 27.67 kB / 0.5938 GB, free: 10.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.5277, allocations: 31.17 kB / 0.5938 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.5277, allocations: 4 kB / 0.5938 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.5277, allocations: 0 / 0.5938 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.5277, allocations: 4 kB / 0.5938 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.529, allocations: 0.79 MB / 0.5946 GB, free: 9.648 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.529, allocations: 7.922 kB / 0.5946 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.08e-05/0.5291, allocations: 16 kB / 0.5946 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007249/0.5299, allocations: 221.6 kB / 0.5948 GB, free: 9.402 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.5299, allocations: 0 / 0.5948 GB, free: 9.402 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002849/0.5327, allocations: 3.142 MB / 0.5979 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.5328, allocations: 3.953 kB / 0.5979 GB, free: 6.027 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008412/0.5336, allocations: 0.4955 MB / 0.5984 GB, free: 5.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.5337, allocations: 120.7 kB / 0.5985 GB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.5338, allocations: 3.984 kB / 0.5985 GB, free: 5.359 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.534, allocations: 27.98 kB / 0.5985 GB, free: 5.332 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-05/0.5341, allocations: 31.95 kB / 0.5985 GB, free: 5.301 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.5341, allocations: 8 kB / 0.5985 GB, free: 5.293 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001171/0.5342, allocations: 144.6 kB / 0.5987 GB, free: 5.152 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5342, allocations: 4 kB / 0.5987 GB, free: 5.148 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004095/0.5347, allocations: 91.84 kB / 0.5988 GB, free: 5.059 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000126/0.5348, allocations: 95.25 kB / 0.5989 GB, free: 4.953 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007049/0.5355, allocations: 483.1 kB / 0.5993 GB, free: 4.461 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5355, allocations: 3.938 kB / 0.5993 GB, free: 4.457 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004464/0.536, allocations: 379.4 kB / 0.5997 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.5362, allocations: 37.19 kB / 0.5997 GB, free: 4.031 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005693/0.5368, allocations: 334.3 kB / 0.6 GB, free: 3.684 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.5372, allocations: 0.7757 MB / 0.6008 GB, free: 2.875 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.529e-05/0.5373, allocations: 18.08 kB / 0.6008 GB, free: 2.855 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.975e-05/0.5373, allocations: 15.44 kB / 0.6008 GB, free: 2.844 MB / 410.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5373, allocations: 4 kB / 0.6008 GB, free: 2.84 MB / 410.7 MB Notification: Performance of Templates: time 0.007024/0.5443, allocations: 3.559 MB / 0.6043 GB, free: 15.32 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches