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.001626/0.001626, allocations: 111.7 kB / 18.46 MB, free: 4.59 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.001804/0.001804, allocations: 186.1 kB / 19.39 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.448/1.448, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.2136/0.2136, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.89 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3604, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003855/0.3643, allocations: 2.915 MB / 0.5224 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.3657, allocations: 0.6432 MB / 0.523 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.3659, allocations: 13.62 kB / 0.5231 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002054/0.3661, allocations: 49.38 kB / 0.5231 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000232/0.3664, allocations: 94.38 kB / 0.5232 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.3667, allocations: 90 kB / 0.5233 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006057/0.3673, allocations: 401.9 kB / 0.5237 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.3676, allocations: 123 kB / 0.5238 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.3679, allocations: 156.3 kB / 0.5239 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/0.3682, allocations: 161.2 kB / 0.5241 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8e-05/0.3683, allocations: 34.09 kB / 0.5241 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.951e-05/0.3684, allocations: 37.94 kB / 0.5241 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.896e-05/0.3685, allocations: 72.38 kB / 0.5242 GB, free: 472 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.3687, allocations: 174.7 kB / 0.5244 GB, free: 364 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007347/0.3695, allocations: 393 kB / 0.5248 GB, free: 208 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3695, allocations: 1.438 kB / 0.5248 GB, free: 208 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3695, allocations: 0 / 0.5248 GB, free: 208 kB / 382.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.3695, allocations: 0 / 0.5248 GB, free: 208 kB / 382.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.001253/0.3708, allocations: 0.6337 MB / 0.5254 GB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.658e-05/0.3709, allocations: 8.906 kB / 0.5254 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.371, allocations: 39.89 kB / 0.5254 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.3714, allocations: 276 kB / 0.5257 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.3715, allocations: 24.66 kB / 0.5257 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.3715, allocations: 25.16 kB / 0.5257 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007124/0.3722, allocations: 332 kB / 0.5261 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.3723, allocations: 1.781 kB / 0.5261 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.3723, allocations: 9.812 kB / 0.5261 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.3723, allocations: 7.219 kB / 0.5261 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005894/0.3729, allocations: 245.9 kB / 0.5263 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.3752, allocations: 1.257 MB / 0.5275 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009066/0.3761, allocations: 469.5 kB / 0.528 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.3765, allocations: 158.4 kB / 0.5281 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.3765, allocations: 3.266 kB / 0.5281 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.3765, allocations: 36.86 kB / 0.5282 GB, free: 13.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.884e-06/0.3765, allocations: 0 / 0.5282 GB, free: 13.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003096/0.3796, allocations: 1.022 MB / 0.5292 GB, free: 13.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.3797, allocations: 54.88 kB / 0.5292 GB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.38, allocations: 239.4 kB / 0.5294 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.3801, allocations: 31.39 kB / 0.5295 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.3802, allocations: 173.7 kB / 0.5296 GB, free: 12.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.894e-05/0.3803, allocations: 91.08 kB / 0.5297 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3804, allocations: 48.36 kB / 0.5298 GB, free: 12.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.3806, allocations: 336.5 kB / 0.5301 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.3809, allocations: 104.7 kB / 0.5302 GB, free: 12.22 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.3812, allocations: 147.1 kB / 0.5303 GB, free: 12.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000547/0.3818, allocations: 241.6 kB / 0.5306 GB, free: 11.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3818, allocations: 0 / 0.5306 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001267/0.3831, allocations: 0.4931 MB / 0.531 GB, free: 11.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.3831, allocations: 6.125 kB / 0.5311 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3831, allocations: 1.594 kB / 0.5311 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.3842, allocations: 238.9 kB / 0.5313 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.3844, allocations: 32.23 kB / 0.5313 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0044/0.3888, allocations: 3.69 MB / 0.5349 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.3891, allocations: 44.27 kB / 0.535 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.3891, allocations: 7 kB / 0.535 GB, free: 8.172 MB / 398.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.0001697/0.3893, allocations: 145.4 kB / 0.5351 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.198e-05/0.3893, allocations: 26.36 kB / 0.5351 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.888e-05/0.3894, allocations: 31.59 kB / 0.5352 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.3895, allocations: 3.984 kB / 0.5352 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3895, allocations: 5.5 kB / 0.5352 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3896, allocations: 126.2 kB / 0.5353 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.3896, allocations: 5.719 kB / 0.5353 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.3899, allocations: 27.47 kB / 0.5353 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/0.39, allocations: 31.52 kB / 0.5354 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001414/0.3914, allocations: 0.5448 MB / 0.5359 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00091/0.3923, allocations: 0.5599 MB / 0.5364 GB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002345/0.3926, allocations: 93.72 kB / 0.5365 GB, free: 7.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001703/0.3927, allocations: 173.4 kB / 0.5367 GB, free: 6.945 MB / 398.1 MB Notification: Performance of Backend: time 4.1e-07/0.3927, allocations: 4 kB / 0.5367 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.394, allocations: 0.5416 MB / 0.5372 GB, free: 6.512 MB / 398.1 MB Notification: Performance of SimCode: time 0.00128/0.3952, allocations: 1.056 MB / 0.5382 GB, free: 5.617 MB / 398.1 MB Notification: Performance of Templates: time 0.008725/0.404, allocations: 4.391 MB / 0.5425 GB, free: 3.469 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/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