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.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.00124/0.00124, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001323/0.001323, allocations: 161 kB / 24.55 MB, free: 20 kB / 18.57 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.063/1.063, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2547/0.2547, allocations: 32.81 MB / 294.3 MB, free: 1.277 MB / 266.7 MB " [Timeout remaining time 180] 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.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.0.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.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 3.938 kB / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.341e-05/3.568e-05, allocations: 2.312 kB / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003413/0.003449, allocations: 2.943 MB / 378.9 MB, free: 1.719 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009492/0.004398, allocations: 0.6736 MB / 379.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.004539, allocations: 7.938 kB / 379.6 MB, free: 1.031 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.004688, allocations: 63.44 kB / 379.7 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.004818, allocations: 91.06 kB / 379.8 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.004976, allocations: 95.84 kB / 379.9 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003086/0.005284, allocations: 418.1 kB / 380.3 MB, free: 384 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.005473, allocations: 91.33 kB / 380.4 MB, free: 288 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.00565, allocations: 223.6 kB / 380.6 MB, free: 64 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.005817, allocations: 115.8 kB / 380.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.005861, allocations: 36 kB / 380.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.471e-05/0.005896, allocations: 32 kB / 380.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.005946, allocations: 79.64 kB / 380.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.287e-05/0.006038, allocations: 123.7 kB / 381 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.006294, allocations: 271 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.006296, allocations: 0 / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.006297, allocations: 0 / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.006303, allocations: 0 / 381.2 MB, free: 15.42 MB / 362.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.0007085/0.007012, allocations: 0.652 MB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.007054, allocations: 11.98 kB / 381.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.221e-05/0.007136, allocations: 76.64 kB / 382 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.007397, allocations: 217.2 kB / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.007424, allocations: 17.03 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.685e-05/0.007461, allocations: 32.38 kB / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.007845, allocations: 366.5 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.007859, allocations: 4.188 kB / 382.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.007881, allocations: 8.375 kB / 382.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.007894, allocations: 11.94 kB / 382.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.00808, allocations: 127.8 kB / 382.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.009279, allocations: 1.171 MB / 383.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.009636, allocations: 238 kB / 384.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.009795, allocations: 104.1 kB / 384.2 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.009811, allocations: 4.234 kB / 384.2 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.00984, allocations: 41.56 kB / 384.3 MB, free: 12.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 3.747e-06/0.009844, allocations: 0 / 384.3 MB, free: 12.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001384/0.01123, allocations: 0.6042 MB / 384.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.01126, allocations: 51.41 kB / 384.9 MB, free: 11.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.01143, allocations: 269.7 kB / 385.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.01145, allocations: 29.7 kB / 385.2 MB, free: 11.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.01154, allocations: 215.3 kB / 385.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.716e-05/0.01159, allocations: 99.16 kB / 385.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.057e-05/0.01166, allocations: 59.31 kB / 385.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.01178, allocations: 0.504 MB / 386.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.686e-05/0.01186, allocations: 47.91 kB / 386.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.01196, allocations: 111.1 kB / 386.2 MB, free: 10.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.01214, allocations: 158.4 kB / 386.4 MB, free: 9.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.01214, allocations: 4 kB / 386.4 MB, free: 9.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004671/0.01261, allocations: 336.5 kB / 386.7 MB, free: 9.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.01263, allocations: 6.188 kB / 386.7 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.01264, allocations: 7.938 kB / 386.8 MB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005335/0.01317, allocations: 183.2 kB / 386.9 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.362e-05/0.01326, allocations: 31.98 kB / 387 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/0.01563, allocations: 3.986 MB / 390.9 MB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.432e-05/0.01572, allocations: 27.83 kB / 391 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.01573, allocations: 12 kB / 391 MB, free: 5.078 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 (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.0001102/0.01585, allocations: 172.5 kB / 391.2 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.229e-05/0.01589, allocations: 43.81 kB / 391.2 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.01592, allocations: 34.64 kB / 391.2 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.01592, allocations: 4 kB / 391.2 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.01593, allocations: 0 / 391.2 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.01594, allocations: 3.938 kB / 391.2 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008915/0.01683, allocations: 0.6764 MB / 391.9 MB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.01683, allocations: 3.938 kB / 391.9 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.653e-05/0.01688, allocations: 16 kB / 391.9 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004147/0.01729, allocations: 191.6 kB / 392.1 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.0173, allocations: 4 kB / 392.1 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.01934, allocations: 3.974 MB / 396.1 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.01934, allocations: 3.938 kB / 396.1 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004453/0.01979, allocations: 457 kB / 396.5 MB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.514e-05/0.01985, allocations: 51.77 kB / 396.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.01987, allocations: 8 kB / 396.6 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.772e-05/0.01997, allocations: 19.98 kB / 396.6 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.259e-05/0.02004, allocations: 35.86 kB / 396.7 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.02005, allocations: 8 kB / 396.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.082e-05/0.02014, allocations: 183.1 kB / 396.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02014, allocations: 0 / 396.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.02044, allocations: 115.8 kB / 397 MB, free: 14.76 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 (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.0001174/0.02056, allocations: 111.2 kB / 397.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005963/0.02115, allocations: 0.5569 MB / 397.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.02115, allocations: 4.062 kB / 397.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.02147, allocations: 0.495 MB / 398.1 MB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.02174, allocations: 40.48 kB / 398.2 MB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008501/0.0226, allocations: 486.9 kB / 398.6 MB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.02281, allocations: 92.61 kB / 398.7 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.549e-05/0.02287, allocations: 18.3 kB / 398.7 MB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.147e-05/0.02291, allocations: 20.5 kB / 398.8 MB, free: 12.81 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02291, allocations: 0 / 398.8 MB, free: 12.81 MB / 378.7 MB Notification: Performance of Templates: time 0.006774/0.02968, allocations: 4.777 MB / 403.5 MB, free: 8.102 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4524405510164797]