Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.001169, allocations: 194.9 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007667/0.0007669, allocations: 98.8 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3686/0.3686, allocations: 44.82 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003048, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3985, allocations: 62.96 MB / 0.5165 GB, free: 37.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1214/0.5199, allocations: 89.68 MB / 0.6041 GB, free: 15.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.5202, allocations: 75.95 kB / 0.6041 GB, free: 15.63 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01245/0.5327, allocations: 4.852 MB / 0.6089 GB, free: 10.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5327, allocations: 0 / 0.6089 GB, free: 10.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.5328, allocations: 8 kB / 0.6089 GB, free: 10.76 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.0009101/0.5337, allocations: 0.577 MB / 0.6094 GB, free: 10.13 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.5337, allocations: 12.03 kB / 0.6094 GB, free: 10.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.37e-05/0.5338, allocations: 40.45 kB / 0.6095 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.5342, allocations: 267.2 kB / 0.6097 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.5342, allocations: 20.94 kB / 0.6098 GB, free: 9.766 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.5342, allocations: 24.38 kB / 0.6098 GB, free: 9.742 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006184/0.5349, allocations: 341 kB / 0.6101 GB, free: 9.395 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.5349, allocations: 192 / 0.6101 GB, free: 9.395 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.5349, allocations: 11.94 kB / 0.6101 GB, free: 9.383 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.5349, allocations: 8 kB / 0.6101 GB, free: 9.375 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005192/0.5355, allocations: 258.1 kB / 0.6104 GB, free: 9.121 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.5376, allocations: 1.299 MB / 0.6116 GB, free: 7.742 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007859/0.5384, allocations: 495.9 kB / 0.6121 GB, free: 7.215 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.5387, allocations: 169.3 kB / 0.6123 GB, free: 7.047 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.5387, allocations: 8.172 kB / 0.6123 GB, free: 7.039 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.5388, allocations: 34.8 kB / 0.6123 GB, free: 6.996 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 1.553e-06/0.5388, allocations: 4 kB / 0.6123 GB, free: 6.992 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.002994/0.5418, allocations: 1.163 MB / 0.6135 GB, free: 5.781 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.5418, allocations: 55.41 kB / 0.6135 GB, free: 5.715 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.5421, allocations: 248.8 kB / 0.6137 GB, free: 5.457 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.5421, allocations: 33.7 kB / 0.6138 GB, free: 5.418 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.5422, allocations: 160.5 kB / 0.6139 GB, free: 5.258 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.557e-05/0.5423, allocations: 86.66 kB / 0.614 GB, free: 5.172 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.739e-05/0.5423, allocations: 8 kB / 0.614 GB, free: 5.164 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.5425, allocations: 334.8 kB / 0.6143 GB, free: 4.828 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002456/0.5427, allocations: 108.5 kB / 0.6144 GB, free: 4.719 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.543, allocations: 152.4 kB / 0.6146 GB, free: 4.562 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.5435, allocations: 243 kB / 0.6148 GB, free: 4.316 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.5435, allocations: 0 / 0.6148 GB, free: 4.316 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001102/0.5446, allocations: 0.5143 MB / 0.6153 GB, free: 3.789 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.5446, allocations: 8 kB / 0.6153 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.331e-06/0.5446, allocations: 0 / 0.6153 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009703/0.5456, allocations: 290.3 kB / 0.6156 GB, free: 3.492 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.5458, allocations: 27.98 kB / 0.6156 GB, free: 3.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003923/0.5497, allocations: 3.511 MB / 0.6191 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.5499, allocations: 39.67 kB / 0.6191 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.5499, allocations: 12 kB / 0.6191 GB, free: 15.64 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.0001866/0.5501, allocations: 141.8 kB / 0.6192 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.391e-05/0.5502, allocations: 27.66 kB / 0.6193 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.594e-05/0.5503, allocations: 38.86 kB / 0.6193 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.5503, allocations: 3.938 kB / 0.6193 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.5503, allocations: 4 kB / 0.6193 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.5503, allocations: 3.984 kB / 0.6193 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.5519, allocations: 0.939 MB / 0.6202 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.552, allocations: 3.984 kB / 0.6202 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.975e-05/0.5521, allocations: 19.94 kB / 0.6203 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008949/0.553, allocations: 285.5 kB / 0.6205 GB, free: 14.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.553, allocations: 0 / 0.6205 GB, free: 14.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003813/0.5568, allocations: 3.507 MB / 0.624 GB, free: 10.33 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.5568, allocations: 7.922 kB / 0.624 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.558, allocations: 0.5827 MB / 0.6245 GB, free: 9.715 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.5581, allocations: 116.8 kB / 0.6246 GB, free: 9.582 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.5581, allocations: 8 kB / 0.6247 GB, free: 9.574 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.5584, allocations: 35.98 kB / 0.6247 GB, free: 9.539 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.5585, allocations: 27.95 kB / 0.6247 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.5585, allocations: 8 kB / 0.6247 GB, free: 9.504 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001904/0.5587, allocations: 172.5 kB / 0.6249 GB, free: 9.332 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5587, allocations: 0 / 0.6249 GB, free: 9.332 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000426/0.5591, allocations: 103.8 kB / 0.625 GB, free: 9.23 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.0001215/0.5592, allocations: 115.1 kB / 0.6251 GB, free: 9.109 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009916/0.5602, allocations: 0.5715 MB / 0.6257 GB, free: 8.512 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5603, allocations: 4.125 kB / 0.6257 GB, free: 8.508 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005916/0.5609, allocations: 445.1 kB / 0.6261 GB, free: 8.047 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.5613, allocations: 48.36 kB / 0.6261 GB, free: 8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009467/0.5622, allocations: 0.6489 MB / 0.6268 GB, free: 7.324 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.5626, allocations: 0.7639 MB / 0.6275 GB, free: 6.535 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.383e-05/0.5627, allocations: 15.44 kB / 0.6275 GB, free: 6.52 MB / 442.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5627, allocations: 8 kB / 0.6275 GB, free: 6.512 MB / 442.7 MB Notification: Performance of Templates: time 0.007677/0.5703, allocations: 5.521 MB / 0.6329 GB, free: 1.012 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches