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.001128/0.001128, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.6 MB / 243.1 MB, free: 12.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007308/0.0007308, allocations: 86.7 kB / 295.1 MB, free: 4.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1872/0.1872, allocations: 44.84 MB / 392 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 4 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09174/0.09205, allocations: 62.95 MB / 0.5153 GB, free: 5.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.001986/0.09408, allocations: 2.48 MB / 0.5177 GB, free: 2.621 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006803/0.09477, allocations: 0.647 MB / 0.5184 GB, free: 1.969 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.09489, allocations: 4 kB / 0.5184 GB, free: 1.965 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.09501, allocations: 43.62 kB / 0.5184 GB, free: 1.922 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.871e-05/0.09511, allocations: 79.36 kB / 0.5185 GB, free: 1.844 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001135/0.09523, allocations: 67.92 kB / 0.5186 GB, free: 1.777 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.09546, allocations: 370.2 kB / 0.5189 GB, free: 1.414 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.09562, allocations: 98.31 kB / 0.519 GB, free: 1.32 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.756e-05/0.09572, allocations: 127.6 kB / 0.5191 GB, free: 1.195 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.09585, allocations: 135.4 kB / 0.5193 GB, free: 1.062 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.09589, allocations: 20 kB / 0.5193 GB, free: 1.043 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.965e-05/0.09594, allocations: 16 kB / 0.5193 GB, free: 1.027 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.347e-05/0.09597, allocations: 59.75 kB / 0.5194 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.09602, allocations: 81.58 kB / 0.5194 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.09619, allocations: 287.3 kB / 0.5197 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.0962, allocations: 4 kB / 0.5197 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.0962, allocations: 0 / 0.5197 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.09622, allocations: 0 / 0.5197 GB, free: 0.5977 MB / 346.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.0007585/0.09698, allocations: 0.5925 MB / 0.5203 GB, free: 15.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.09702, allocations: 15.97 kB / 0.5203 GB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.385e-05/0.09709, allocations: 31.62 kB / 0.5203 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.09737, allocations: 270.9 kB / 0.5206 GB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.322e-05/0.0974, allocations: 24.5 kB / 0.5206 GB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.09745, allocations: 31.94 kB / 0.5206 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005412/0.09799, allocations: 324.5 kB / 0.521 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.09801, allocations: 0 / 0.521 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.09806, allocations: 16 kB / 0.521 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.09807, allocations: 8 kB / 0.521 GB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004738/0.09855, allocations: 258.1 kB / 0.5212 GB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.1004, allocations: 1.277 MB / 0.5225 GB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006927/0.1011, allocations: 489.3 kB / 0.5229 GB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.1014, allocations: 177.2 kB / 0.5231 GB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.1014, allocations: 4.234 kB / 0.5231 GB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.1014, allocations: 34.8 kB / 0.5231 GB, free: 12.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.382e-06/0.1014, allocations: 0 / 0.5231 GB, free: 12.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002845/0.1043, allocations: 1.17 MB / 0.5243 GB, free: 11.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.1043, allocations: 55.41 kB / 0.5243 GB, free: 11.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.1046, allocations: 237 kB / 0.5246 GB, free: 11.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.1046, allocations: 33.7 kB / 0.5246 GB, free: 11.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.026e-05/0.1047, allocations: 172.2 kB / 0.5248 GB, free: 11.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.885e-05/0.1048, allocations: 90.67 kB / 0.5248 GB, free: 11.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.1048, allocations: 4 kB / 0.5249 GB, free: 11.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.93e-05/0.1049, allocations: 338.8 kB / 0.5252 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.1051, allocations: 111.9 kB / 0.5253 GB, free: 10.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.1054, allocations: 148.2 kB / 0.5254 GB, free: 10.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.1056, allocations: 128.5 kB / 0.5255 GB, free: 10.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1056, allocations: 0 / 0.5255 GB, free: 10.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001068/0.1067, allocations: 0.5337 MB / 0.5261 GB, free: 9.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1067, allocations: 4 kB / 0.5261 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.1067, allocations: 0 / 0.5261 GB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009328/0.1077, allocations: 289.5 kB / 0.5263 GB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.1078, allocations: 27.98 kB / 0.5264 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003538/0.1114, allocations: 3.515 MB / 0.5298 GB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.1116, allocations: 43.67 kB / 0.5298 GB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.1116, allocations: 8 kB / 0.5299 GB, free: 5.578 MB / 362.7 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 (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.0001344/0.1117, allocations: 145.8 kB / 0.53 GB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.1118, allocations: 27.72 kB / 0.53 GB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.911e-05/0.1118, allocations: 34.86 kB / 0.5301 GB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1118, allocations: 4 kB / 0.5301 GB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.1119, allocations: 4 kB / 0.5301 GB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1119, allocations: 11.89 kB / 0.5301 GB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.1134, allocations: 0.9261 MB / 0.531 GB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1134, allocations: 3.984 kB / 0.531 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.717e-05/0.1135, allocations: 16 kB / 0.531 GB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008418/0.1143, allocations: 281.5 kB / 0.5313 GB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.1143, allocations: 4 kB / 0.5313 GB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003438/0.1178, allocations: 3.511 MB / 0.5347 GB, free: 276 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1178, allocations: 0 / 0.5347 GB, free: 276 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1188, allocations: 0.5867 MB / 0.5353 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.981e-05/0.1189, allocations: 124.7 kB / 0.5354 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.119, allocations: 4 kB / 0.5354 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.1192, allocations: 35.98 kB / 0.5354 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.1193, allocations: 31.89 kB / 0.5355 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.1193, allocations: 8 kB / 0.5355 GB, free: 15.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001386/0.1194, allocations: 172.5 kB / 0.5356 GB, free: 15.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1194, allocations: 0 / 0.5356 GB, free: 15.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003504/0.1198, allocations: 107.8 kB / 0.5357 GB, free: 15.17 MB / 378.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.0001068/0.1199, allocations: 107.2 kB / 0.5358 GB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009287/0.1208, allocations: 0.5716 MB / 0.5364 GB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1209, allocations: 4.062 kB / 0.5364 GB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005526/0.1214, allocations: 453.1 kB / 0.5368 GB, free: 13.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.1218, allocations: 42.81 kB / 0.5369 GB, free: 13.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008441/0.1227, allocations: 0.6404 MB / 0.5375 GB, free: 13.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.123, allocations: 0.7717 MB / 0.5382 GB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.153e-05/0.123, allocations: 19.44 kB / 0.5383 GB, free: 12.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.123, allocations: 4 kB / 0.5383 GB, free: 12.46 MB / 378.7 MB Notification: Performance of Templates: time 0.006312/0.1293, allocations: 5.531 MB / 0.5437 GB, free: 6.93 MB / 378.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/jenkins/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