Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 213.3 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.523/1.523, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2467/0.2467, allocations: 46.96 MB / 361.6 MB, free: 4.117 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 63.89 kB / 0.4973 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.4, allocations: 66.03 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004363/0.4044, allocations: 2.72 MB / 0.5645 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.4058, allocations: 0.6502 MB / 0.5651 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.406, allocations: 11.94 kB / 0.5651 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000251/0.4063, allocations: 47.5 kB / 0.5652 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.4064, allocations: 103.1 kB / 0.5653 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.4067, allocations: 87.88 kB / 0.5653 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.4072, allocations: 410.1 kB / 0.5657 GB, free: 128 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.4074, allocations: 91.34 kB / 0.5658 GB, free: 36 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.4076, allocations: 155.5 kB / 0.566 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.4079, allocations: 167.3 kB / 0.5661 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-05/0.4079, allocations: 36 kB / 0.5662 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.398e-05/0.408, allocations: 36 kB / 0.5662 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.294e-05/0.4081, allocations: 75.75 kB / 0.5663 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.4082, allocations: 143.4 kB / 0.5664 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004974/0.4087, allocations: 397.3 kB / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4087, allocations: 0 / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4087, allocations: 0 / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.4087, allocations: 0 / 0.5668 GB, free: 15.05 MB / 414.1 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.00123/0.41, allocations: 0.5599 MB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.41, allocations: 12.03 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.4101, allocations: 32.75 kB / 0.5674 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.4106, allocations: 226.5 kB / 0.5676 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.4106, allocations: 25.02 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.78e-05/0.4106, allocations: 28.38 kB / 0.5676 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007438/0.4114, allocations: 433 kB / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.4114, allocations: 0 / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.4114, allocations: 12 kB / 0.5681 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.4114, allocations: 8 kB / 0.5681 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005135/0.412, allocations: 246.4 kB / 0.5683 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.4141, allocations: 1.08 MB / 0.5694 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007364/0.4149, allocations: 290.8 kB / 0.5696 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/0.4152, allocations: 144.1 kB / 0.5698 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.4152, allocations: 8.172 kB / 0.5698 GB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.4153, allocations: 38.8 kB / 0.5698 GB, free: 11.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.894e-06/0.4153, allocations: 0 / 0.5698 GB, free: 11.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002849/0.4181, allocations: 0.8562 MB / 0.5707 GB, free: 10.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.4182, allocations: 59.34 kB / 0.5707 GB, free: 10.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.4184, allocations: 217 kB / 0.5709 GB, free: 10.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.4184, allocations: 29.7 kB / 0.5709 GB, free: 10.56 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.4186, allocations: 172.5 kB / 0.5711 GB, free: 10.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.181e-05/0.4187, allocations: 91.22 kB / 0.5712 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.4188, allocations: 53.67 kB / 0.5712 GB, free: 10.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.419, allocations: 330.8 kB / 0.5716 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/0.4192, allocations: 107.9 kB / 0.5717 GB, free: 9.805 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.4195, allocations: 156.8 kB / 0.5718 GB, free: 9.637 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004834/0.42, allocations: 248.7 kB / 0.5721 GB, free: 9.379 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.42, allocations: 0 / 0.5721 GB, free: 9.379 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001106/0.4211, allocations: 482.7 kB / 0.5725 GB, free: 8.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.4211, allocations: 4 kB / 0.5725 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.4211, allocations: 0 / 0.5725 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009707/0.4221, allocations: 245.5 kB / 0.5727 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.4222, allocations: 31.92 kB / 0.5728 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/0.4266, allocations: 3.4 MB / 0.5761 GB, free: 5.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.4268, allocations: 39.86 kB / 0.5761 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.4268, allocations: 12 kB / 0.5762 GB, free: 4.961 MB / 414.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002215/0.427, allocations: 149.6 kB / 0.5763 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.625e-05/0.4271, allocations: 27.86 kB / 0.5763 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.785e-05/0.4272, allocations: 26.66 kB / 0.5763 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.4272, allocations: 4 kB / 0.5763 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.4272, allocations: 4 kB / 0.5764 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.4272, allocations: 3.984 kB / 0.5764 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.4288, allocations: 0.7748 MB / 0.5771 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.4289, allocations: 3.938 kB / 0.5771 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.281e-05/0.4289, allocations: 19.98 kB / 0.5771 GB, free: 3.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008539/0.4298, allocations: 237.9 kB / 0.5774 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.4298, allocations: 8 kB / 0.5774 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004033/0.4338, allocations: 3.401 MB / 0.5807 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4338, allocations: 0 / 0.5807 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.435, allocations: 0.5291 MB / 0.5812 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.4351, allocations: 47.77 kB / 0.5813 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.4351, allocations: 11.88 kB / 0.5813 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.4354, allocations: 23.98 kB / 0.5813 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.4355, allocations: 39.88 kB / 0.5813 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.4355, allocations: 4 kB / 0.5813 GB, free: 15.37 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001726/0.4357, allocations: 151.2 kB / 0.5815 GB, free: 15.22 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4357, allocations: 0 / 0.5815 GB, free: 15.22 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005102/0.4362, allocations: 111.8 kB / 0.5816 GB, free: 15.11 MB / 430.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001821/0.4363, allocations: 107.2 kB / 0.5817 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.4375, allocations: 0.5324 MB / 0.5822 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4375, allocations: 0 / 0.5822 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007387/0.4383, allocations: 429 kB / 0.5826 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004034/0.4387, allocations: 45 kB / 0.5827 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.4398, allocations: 0.5158 MB / 0.5832 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.44, allocations: 155.2 kB / 0.5833 GB, free: 13.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.773e-05/0.4401, allocations: 18.3 kB / 0.5833 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.4401, allocations: 15.44 kB / 0.5833 GB, free: 13.2 MB / 430.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4401, allocations: 0 / 0.5833 GB, free: 13.2 MB / 430.1 MB Notification: Performance of Templates: time 0.01091/0.451, allocations: 5.028 MB / 0.5882 GB, free: 8.25 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.463589064005646]