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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001736/0.001736, allocations: 78.33 kB / 21.24 MB, free: 0.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002062/0.002062, allocations: 162 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 177.1 MB / 204.7 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2353/0.2353, allocations: 34.26 MB / 295.4 MB, free: 14.48 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00241/0.00241, allocations: 83.88 kB / 443.1 MB, free: 6.496 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4168, allocations: 66.05 MB / 0.4973 GB, free: 29.8 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003046/0.4198, allocations: 2.729 MB / 0.4999 GB, free: 27.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008546/0.4207, allocations: 0.6637 MB / 0.5006 GB, free: 27.49 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.4208, allocations: 14.38 kB / 0.5006 GB, free: 27.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.421, allocations: 48.67 kB / 0.5006 GB, free: 27.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.4211, allocations: 93.58 kB / 0.5007 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001458/0.4212, allocations: 93.34 kB / 0.5008 GB, free: 27.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.4215, allocations: 410.4 kB / 0.5012 GB, free: 27.13 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.4217, allocations: 86.09 kB / 0.5013 GB, free: 27.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.4218, allocations: 162.2 kB / 0.5014 GB, free: 27.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.422, allocations: 145.5 kB / 0.5016 GB, free: 26.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/0.422, allocations: 34.78 kB / 0.5016 GB, free: 26.95 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.992e-05/0.4221, allocations: 34.03 kB / 0.5016 GB, free: 26.95 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.975e-05/0.4221, allocations: 76.16 kB / 0.5017 GB, free: 26.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.4222, allocations: 142.9 kB / 0.5018 GB, free: 26.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00028/0.4225, allocations: 396.8 kB / 0.5022 GB, free: 26.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.4225, allocations: 0 / 0.5022 GB, free: 26.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4225, allocations: 0 / 0.5022 GB, free: 26.67 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.4225, allocations: 0 / 0.5022 GB, free: 26.67 MB / 446.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.0008518/0.4234, allocations: 0.5648 MB / 0.5028 GB, free: 26.26 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.4234, allocations: 10.34 kB / 0.5028 GB, free: 26.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.106e-05/0.4235, allocations: 40 kB / 0.5028 GB, free: 26.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.4238, allocations: 214.4 kB / 0.503 GB, free: 26.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.4238, allocations: 22.03 kB / 0.503 GB, free: 26.04 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.3e-05/0.4238, allocations: 24.06 kB / 0.5031 GB, free: 26.04 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005254/0.4244, allocations: 438.7 kB / 0.5035 GB, free: 25.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.4244, allocations: 0 / 0.5035 GB, free: 25.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.4244, allocations: 11.12 kB / 0.5035 GB, free: 25.74 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.4244, allocations: 10.44 kB / 0.5035 GB, free: 25.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000434/0.4248, allocations: 240.8 kB / 0.5037 GB, free: 25.65 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.4264, allocations: 1.085 MB / 0.5048 GB, free: 24.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.427, allocations: 290.3 kB / 0.5051 GB, free: 24.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002661/0.4273, allocations: 140.5 kB / 0.5052 GB, free: 24.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.4273, allocations: 11.14 kB / 0.5052 GB, free: 24.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.4273, allocations: 33.83 kB / 0.5053 GB, free: 24.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.423e-06/0.4273, allocations: 0 / 0.5053 GB, free: 24.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=27): time 0.002562/0.4299, allocations: 0.8575 MB / 0.5061 GB, free: 24.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.4299, allocations: 57.73 kB / 0.5061 GB, free: 24.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.4301, allocations: 215.2 kB / 0.5064 GB, free: 24.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.4301, allocations: 32.7 kB / 0.5064 GB, free: 24.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.267e-05/0.4301, allocations: 171 kB / 0.5065 GB, free: 24.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.111e-05/0.4302, allocations: 97.53 kB / 0.5066 GB, free: 24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.316e-05/0.4302, allocations: 57.33 kB / 0.5067 GB, free: 23.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.066e-05/0.4303, allocations: 335.2 kB / 0.507 GB, free: 23.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.4305, allocations: 106.2 kB / 0.5071 GB, free: 23.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.4307, allocations: 155.7 kB / 0.5073 GB, free: 23.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004021/0.4311, allocations: 246.3 kB / 0.5075 GB, free: 23.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4311, allocations: 0 / 0.5075 GB, free: 23.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009614/0.4321, allocations: 482.8 kB / 0.508 GB, free: 23.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.4321, allocations: 6.469 kB / 0.508 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4321, allocations: 0 / 0.508 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008795/0.433, allocations: 248.2 kB / 0.5082 GB, free: 23.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.4331, allocations: 32.44 kB / 0.5082 GB, free: 23.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003168/0.4363, allocations: 3.403 MB / 0.5116 GB, free: 20.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.4365, allocations: 35.19 kB / 0.5116 GB, free: 20.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.4365, allocations: 10.03 kB / 0.5116 GB, free: 20.28 MB / 446.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.0001288/0.4366, allocations: 144.8 kB / 0.5117 GB, free: 20.14 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.4367, allocations: 23.86 kB / 0.5118 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.737e-05/0.4367, allocations: 33.17 kB / 0.5118 GB, free: 20.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.4367, allocations: 3.031 kB / 0.5118 GB, free: 20.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.4367, allocations: 3.062 kB / 0.5118 GB, free: 20.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4367, allocations: 4 kB / 0.5118 GB, free: 20.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.438, allocations: 0.7728 MB / 0.5126 GB, free: 19.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.438, allocations: 0 / 0.5126 GB, free: 19.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/0.4381, allocations: 26.17 kB / 0.5126 GB, free: 19.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008596/0.4389, allocations: 235.3 kB / 0.5128 GB, free: 19.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.439, allocations: 5.156 kB / 0.5128 GB, free: 19.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003233/0.4422, allocations: 3.401 MB / 0.5161 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4422, allocations: 0.9375 kB / 0.5161 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.4432, allocations: 0.5319 MB / 0.5167 GB, free: 16.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.103e-05/0.4433, allocations: 48.55 kB / 0.5167 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.4434, allocations: 5.812 kB / 0.5167 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.4436, allocations: 26.77 kB / 0.5167 GB, free: 16.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.841e-05/0.4437, allocations: 36.84 kB / 0.5168 GB, free: 16.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.4437, allocations: 5.312 kB / 0.5168 GB, free: 16.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001223/0.4438, allocations: 158.1 kB / 0.5169 GB, free: 16.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4438, allocations: 0 / 0.5169 GB, free: 16.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004417/0.4443, allocations: 115.1 kB / 0.517 GB, free: 16.29 MB / 446.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 9.114e-05/0.4444, allocations: 102.2 kB / 0.5171 GB, free: 16.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000868/0.4452, allocations: 0.53 MB / 0.5176 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4452, allocations: 1.219 kB / 0.5176 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005056/0.4457, allocations: 429.3 kB / 0.5181 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.4461, allocations: 37.33 kB / 0.5181 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008248/0.4469, allocations: 0.5278 MB / 0.5186 GB, free: 15.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.447, allocations: 156.3 kB / 0.5188 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.395e-05/0.4471, allocations: 19.89 kB / 0.5188 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.158e-05/0.4471, allocations: 17 kB / 0.5188 GB, free: 15.13 MB / 446.1 MB Notification: Performance of SimCode: time 4e-07/0.4471, allocations: 1.375 kB / 0.5188 GB, free: 15.13 MB / 446.1 MB Notification: Performance of Templates: time 0.009031/0.4562, allocations: 4.635 MB / 0.5233 GB, free: 14.55 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.403028798056766]