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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001356, allocations: 106.2 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 192.3 kB / 19.4 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 243.1 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2323/0.2323, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.298e-05, allocations: 2.281 kB / 471.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003671/0.003703, allocations: 2.918 MB / 474.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.004806, allocations: 0.6389 MB / 474.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.004959, allocations: 8 kB / 474.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.005132, allocations: 55.44 kB / 474.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.005303, allocations: 91.19 kB / 474.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.005488, allocations: 87.86 kB / 474.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000428/0.005923, allocations: 462.2 kB / 475.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.006162, allocations: 122.9 kB / 475.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.006308, allocations: 143.5 kB / 475.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.006497, allocations: 159.4 kB / 475.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.006549, allocations: 35.94 kB / 475.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.902e-05/0.006604, allocations: 36 kB / 475.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.0003863/0.006995, allocations: 0.5217 MB / 476.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001663/0.007171, allocations: 307.5 kB / 476.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.375e-05/0.00723, allocations: 59.81 kB / 476.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.148e-05/0.007287, allocations: 12 kB / 476.8 MB, free: 7.598 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 (68) * Number of variables: 68 (68) Notification: Performance of Bindings: time 0.001318/0.008611, allocations: 1.534 MB / 478.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of FunctionAlias: time 5.401e-05/0.008671, allocations: 67.83 kB / 478.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of Early Inline: time 0.0006849/0.009363, allocations: 0.7883 MB / 479.2 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simplify1: time 9.242e-05/0.009462, allocations: 87.88 kB / 479.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of Alias: time 0.001696/0.01116, allocations: 1.443 MB / 480.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simplify2: time 5.588e-05/0.01123, allocations: 59.92 kB / 480.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of Events: time 0.000183/0.01142, allocations: 115.7 kB / 480.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of Detect States: time 0.0003477/0.01178, allocations: 194.2 kB / 481 MB, free: 2.977 MB / 350.1 MB Notification: Performance of Partitioning: time 0.0002816/0.01207, allocations: 271.9 kB / 481.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of Causalize: time 0.001174/0.01325, allocations: 1.055 MB / 482.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005418/0.0138, allocations: 0.5937 MB / 483 MB, free: 0.957 MB / 350.1 MB Notification: Performance of Inline: time 0.0009155/0.01472, allocations: 0.9455 MB / 483.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of Partitioning: time 5.741e-05/0.01479, allocations: 50.38 kB / 484 MB, free: 15.91 MB / 366.1 MB Notification: Performance of Cleanup: time 4.13e-05/0.01484, allocations: 47.94 kB / 484 MB, free: 15.87 MB / 366.1 MB Notification: Performance of Causalize: time 0.001454/0.0163, allocations: 1.306 MB / 485.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of Tearing: time 0.0007345/0.01704, allocations: 0.8357 MB / 486.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Initialization: time 4.91e-07/0.01705, allocations: 0 / 486.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Tearing: time 0.0006374/0.0177, allocations: 0.8247 MB / 487 MB, free: 12.69 MB / 366.1 MB Notification: Performance of Categorize: time 1.466e-05/0.01772, allocations: 192 / 487 MB, free: 12.69 MB / 366.1 MB Notification: Performance of Solve: time 0.0001832/0.01791, allocations: 109.6 kB / 487.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of Jacobian: time 2.865e-06/0.01792, allocations: 3.938 kB / 487.1 MB, free: 12.58 MB / 366.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 5 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 7 (7) {booleanStep.y, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 22 (scalar:22, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 33 (scalar:33, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 4.679e-05/0.01797, allocations: 42.73 kB / 487.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of SimCode: time 0.001398/0.01938, allocations: 1.772 MB / 488.9 MB, free: 10.74 MB / 366.1 MB Notification: Performance of Templates: time 0.006691/0.02608, allocations: 3.524 MB / 492.4 MB, free: 7.219 MB / 366.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches