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.001277/0.001277, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009511/0.0009511, allocations: 93.16 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3014/0.3014, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002936, allocations: 7.984 kB / 468.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3209, allocations: 63.24 MB / 0.5192 GB, free: 43.76 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1042/0.4251, allocations: 89.82 MB / 0.6069 GB, free: 15.85 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.4254, allocations: 78.86 kB / 0.607 GB, free: 15.77 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01251/0.438, allocations: 4.851 MB / 0.6117 GB, free: 10.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.438, allocations: 4 kB / 0.6117 GB, free: 10.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.438, allocations: 11.98 kB / 0.6117 GB, free: 10.93 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.0008613/0.4389, allocations: 0.5806 MB / 0.6123 GB, free: 10.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.439, allocations: 12.03 kB / 0.6123 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.568e-05/0.439, allocations: 35.62 kB / 0.6123 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003059/0.4394, allocations: 267.5 kB / 0.6126 GB, free: 9.957 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.4394, allocations: 20.56 kB / 0.6126 GB, free: 9.938 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.4394, allocations: 28 kB / 0.6126 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005834/0.44, allocations: 324.5 kB / 0.6129 GB, free: 9.574 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.4401, allocations: 0 / 0.6129 GB, free: 9.574 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.4401, allocations: 16 kB / 0.613 GB, free: 9.559 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.4401, allocations: 11.94 kB / 0.613 GB, free: 9.547 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004994/0.4406, allocations: 250.1 kB / 0.6132 GB, free: 9.305 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.4426, allocations: 1.308 MB / 0.6145 GB, free: 7.918 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.4433, allocations: 494.4 kB / 0.615 GB, free: 7.391 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.4434, allocations: 4.234 kB / 0.615 GB, free: 7.387 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.4434, allocations: 30.8 kB / 0.615 GB, free: 7.348 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.4434, allocations: 4 kB / 0.615 GB, free: 7.344 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.002803/0.4462, allocations: 1.161 MB / 0.6161 GB, free: 6.137 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.4463, allocations: 59.41 kB / 0.6162 GB, free: 6.066 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.4465, allocations: 212.2 kB / 0.6164 GB, free: 5.852 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.4465, allocations: 33.7 kB / 0.6164 GB, free: 5.812 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.404e-05/0.4466, allocations: 160.4 kB / 0.6166 GB, free: 5.652 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.347e-05/0.4467, allocations: 94.64 kB / 0.6167 GB, free: 5.559 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.328e-05/0.4467, allocations: 4 kB / 0.6167 GB, free: 5.555 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4468, allocations: 330.8 kB / 0.617 GB, free: 5.223 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.4471, allocations: 112.5 kB / 0.6171 GB, free: 5.109 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.4473, allocations: 143.6 kB / 0.6172 GB, free: 4.961 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.4475, allocations: 112.5 kB / 0.6173 GB, free: 4.852 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4475, allocations: 0 / 0.6173 GB, free: 4.852 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001068/0.4486, allocations: 0.5182 MB / 0.6178 GB, free: 4.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.4486, allocations: 4 kB / 0.6178 GB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4487, allocations: 0 / 0.6178 GB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009383/0.4496, allocations: 289.5 kB / 0.6181 GB, free: 4.027 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.4497, allocations: 27.92 kB / 0.6182 GB, free: 4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003797/0.4535, allocations: 3.57 MB / 0.6216 GB, free: 164 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.4537, allocations: 43.77 kB / 0.6217 GB, free: 120 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.4538, allocations: 4 kB / 0.6217 GB, free: 116 kB / 426.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.0001492/0.4539, allocations: 145.8 kB / 0.6218 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.454, allocations: 27.72 kB / 0.6218 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.73e-05/0.4541, allocations: 30.88 kB / 0.6219 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.4541, allocations: 11.94 kB / 0.6219 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.4541, allocations: 4 kB / 0.6219 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4541, allocations: 11.94 kB / 0.6219 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.4556, allocations: 0.9339 MB / 0.6228 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4556, allocations: 4 kB / 0.6228 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.695e-05/0.4557, allocations: 12 kB / 0.6228 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008482/0.4566, allocations: 285.4 kB / 0.6231 GB, free: 14.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.4566, allocations: 8 kB / 0.6231 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/0.4602, allocations: 3.567 MB / 0.6266 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4602, allocations: 3.984 kB / 0.6266 GB, free: 10.74 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.4613, allocations: 0.5866 MB / 0.6272 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.4614, allocations: 124.7 kB / 0.6273 GB, free: 9.988 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.4614, allocations: 4 kB / 0.6273 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.4616, allocations: 39.97 kB / 0.6273 GB, free: 9.945 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.921e-05/0.4617, allocations: 31.94 kB / 0.6274 GB, free: 9.914 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.4617, allocations: 4 kB / 0.6274 GB, free: 9.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001484/0.4619, allocations: 176.5 kB / 0.6275 GB, free: 9.734 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4619, allocations: 0 / 0.6275 GB, free: 9.734 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003678/0.4623, allocations: 111.8 kB / 0.6276 GB, free: 9.625 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.0001205/0.4624, allocations: 104.8 kB / 0.6277 GB, free: 9.512 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009263/0.4633, allocations: 0.5626 MB / 0.6283 GB, free: 8.926 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4634, allocations: 4.125 kB / 0.6283 GB, free: 8.922 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.464, allocations: 453 kB / 0.6287 GB, free: 8.453 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.4643, allocations: 48.95 kB / 0.6288 GB, free: 8.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00091/0.4652, allocations: 0.6152 MB / 0.6294 GB, free: 7.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.4655, allocations: 0.7718 MB / 0.6301 GB, free: 6.969 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.4657, allocations: 26.28 kB / 0.6302 GB, free: 6.945 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.665e-05/0.4657, allocations: 15.44 kB / 0.6302 GB, free: 6.93 MB / 442.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4657, allocations: 0 / 0.6302 GB, free: 6.93 MB / 442.7 MB Notification: Performance of Templates: time 0.008373/0.4741, allocations: 4.134 MB / 0.6342 GB, free: 2.855 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/jenkins/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