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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007867/0.0007867, allocations: 103.6 kB / 297.5 MB, free: 6.711 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4172/0.4172, allocations: 44.82 MB / 394.3 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003067, allocations: 11.98 kB / 467.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3975/0.3978, allocations: 62.95 MB / 0.5184 GB, free: 37.63 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1154/0.5132, allocations: 89.68 MB / 0.606 GB, free: 15.65 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.5135, allocations: 79.94 kB / 0.6061 GB, free: 15.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01327/0.5268, allocations: 4.852 MB / 0.6108 GB, free: 10.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.5269, allocations: 0 / 0.6108 GB, free: 10.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.887e-05/0.5269, allocations: 4 kB / 0.6108 GB, free: 10.71 MB / 426.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.001017/0.5279, allocations: 0.5848 MB / 0.6114 GB, free: 10.08 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.528, allocations: 12.03 kB / 0.6114 GB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.5281, allocations: 36.47 kB / 0.6114 GB, free: 10.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.5285, allocations: 267.9 kB / 0.6117 GB, free: 9.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.5285, allocations: 24.88 kB / 0.6117 GB, free: 9.707 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.5286, allocations: 24.38 kB / 0.6117 GB, free: 9.684 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006984/0.5293, allocations: 333 kB / 0.6121 GB, free: 9.344 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.5293, allocations: 192 / 0.6121 GB, free: 9.344 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.252e-05/0.5294, allocations: 19.94 kB / 0.6121 GB, free: 9.324 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.5294, allocations: 4 kB / 0.6121 GB, free: 9.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005643/0.53, allocations: 258.1 kB / 0.6123 GB, free: 9.066 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.5323, allocations: 1.296 MB / 0.6136 GB, free: 7.688 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008049/0.5331, allocations: 486.4 kB / 0.6141 GB, free: 7.168 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003206/0.5335, allocations: 179.1 kB / 0.6142 GB, free: 6.992 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.5335, allocations: 8.172 kB / 0.6142 GB, free: 6.984 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.5335, allocations: 38.78 kB / 0.6143 GB, free: 6.938 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 2.294e-06/0.5336, allocations: 0 / 0.6143 GB, free: 6.938 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.00299/0.5366, allocations: 1.167 MB / 0.6154 GB, free: 5.723 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.5366, allocations: 55.41 kB / 0.6155 GB, free: 5.656 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.5369, allocations: 248.9 kB / 0.6157 GB, free: 5.398 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.537, allocations: 33.7 kB / 0.6157 GB, free: 5.359 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.5371, allocations: 160.5 kB / 0.6159 GB, free: 5.199 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.225e-05/0.5372, allocations: 94.64 kB / 0.616 GB, free: 5.105 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.5372, allocations: 4 kB / 0.616 GB, free: 5.102 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.5374, allocations: 330.8 kB / 0.6163 GB, free: 4.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.5376, allocations: 108.5 kB / 0.6164 GB, free: 4.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.5379, allocations: 144.4 kB / 0.6165 GB, free: 4.512 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004708/0.5384, allocations: 255 kB / 0.6168 GB, free: 4.254 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.5384, allocations: 4 kB / 0.6168 GB, free: 4.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001095/0.5395, allocations: 0.5104 MB / 0.6173 GB, free: 3.727 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.5395, allocations: 4 kB / 0.6173 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.5395, allocations: 0 / 0.6173 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009514/0.5405, allocations: 290.3 kB / 0.6176 GB, free: 3.434 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.5406, allocations: 23.98 kB / 0.6176 GB, free: 3.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00403/0.5447, allocations: 3.507 MB / 0.621 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.5449, allocations: 43.73 kB / 0.621 GB, free: 15.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.545, allocations: 4 kB / 0.6211 GB, free: 15.59 MB / 442.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 () * Number of clocked 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.0002354/0.5452, allocations: 145.2 kB / 0.6212 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.5453, allocations: 27.66 kB / 0.6212 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.467e-05/0.5454, allocations: 38.86 kB / 0.6213 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.5454, allocations: 11.94 kB / 0.6213 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.5454, allocations: 0 / 0.6213 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.5454, allocations: 3.938 kB / 0.6213 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.5471, allocations: 0.9429 MB / 0.6222 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.5472, allocations: 0 / 0.6222 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.788e-05/0.5473, allocations: 23.92 kB / 0.6222 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008829/0.5481, allocations: 281.5 kB / 0.6225 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.5482, allocations: 8 kB / 0.6225 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00388/0.5521, allocations: 3.511 MB / 0.6259 GB, free: 10.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5521, allocations: 3.938 kB / 0.6259 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.5532, allocations: 0.5789 MB / 0.6265 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.5534, allocations: 120.8 kB / 0.6266 GB, free: 9.523 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.5535, allocations: 4 kB / 0.6266 GB, free: 9.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.5537, allocations: 35.97 kB / 0.6266 GB, free: 9.484 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.5539, allocations: 27.95 kB / 0.6267 GB, free: 9.457 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.5539, allocations: 8 kB / 0.6267 GB, free: 9.449 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001997/0.5541, allocations: 172.5 kB / 0.6268 GB, free: 9.277 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5541, allocations: 0 / 0.6268 GB, free: 9.277 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005404/0.5546, allocations: 103.8 kB / 0.6269 GB, free: 9.176 MB / 442.7 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 (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.0001659/0.5548, allocations: 115.1 kB / 0.627 GB, free: 9.055 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.556, allocations: 0.5715 MB / 0.6276 GB, free: 8.457 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.556, allocations: 0 / 0.6276 GB, free: 8.457 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006312/0.5566, allocations: 441.3 kB / 0.628 GB, free: 8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.5571, allocations: 52.41 kB / 0.6281 GB, free: 7.949 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.5583, allocations: 0.6117 MB / 0.6287 GB, free: 7.316 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/0.5588, allocations: 0.7678 MB / 0.6294 GB, free: 6.523 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.5589, allocations: 22.28 kB / 0.6294 GB, free: 6.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.812e-05/0.559, allocations: 19.44 kB / 0.6295 GB, free: 6.48 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.559, allocations: 0 / 0.6295 GB, free: 6.48 MB / 442.7 MB Notification: Performance of Templates: time 0.00891/0.5679, allocations: 4.171 MB / 0.6335 GB, free: 2.348 MB / 442.7 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","../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches