Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 111.9 kB / 17.09 MB, free: 5.984 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.00115/0.00115, allocations: 198.9 kB / 18.02 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.241/1.241, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1836/0.1836, allocations: 43.52 MB / 314.8 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 77.83 kB / 442.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09469, allocations: 57.78 MB / 0.4886 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004042/0.09876, allocations: 2.738 MB / 0.4912 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002209/0.101, allocations: 1.318 MB / 0.4925 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.1013, allocations: 7.938 kB / 0.4925 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008789/0.1022, allocations: 334.8 kB / 0.4928 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005314/0.1027, allocations: 238.9 kB / 0.4931 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008398/0.1036, allocations: 387.2 kB / 0.4934 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000724/0.1043, allocations: 0.6246 MB / 0.4941 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.1047, allocations: 223.1 kB / 0.4943 GB, free: 5.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.1051, allocations: 278.9 kB / 0.4945 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003444/0.1054, allocations: 294.8 kB / 0.4948 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.515e-05/0.1055, allocations: 48 kB / 0.4949 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002148/0.1057, allocations: 123.9 kB / 0.495 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.1059, allocations: 159.5 kB / 0.4951 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002338/0.1061, allocations: 282.4 kB / 0.4954 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006658/0.1068, allocations: 0.6422 MB / 0.496 GB, free: 4.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1068, allocations: 0 / 0.496 GB, free: 4.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1068, allocations: 0 / 0.496 GB, free: 4.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.1068, allocations: 0 / 0.496 GB, free: 4.086 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001639/0.1085, allocations: 0.9755 MB / 0.497 GB, free: 3.047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.1085, allocations: 12.03 kB / 0.497 GB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.1086, allocations: 68.19 kB / 0.4971 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005904/0.1092, allocations: 422.7 kB / 0.4975 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.221e-05/0.1093, allocations: 41.36 kB / 0.4975 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.12e-05/0.1094, allocations: 43.94 kB / 0.4975 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008112/0.1102, allocations: 455.7 kB / 0.498 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1102, allocations: 4 kB / 0.498 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.288e-05/0.1103, allocations: 16 kB / 0.498 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.1103, allocations: 8 kB / 0.498 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007389/0.111, allocations: 319.8 kB / 0.4983 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.1127, allocations: 1.067 MB / 0.4993 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.1139, allocations: 477.1 kB / 0.4998 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/0.1143, allocations: 186 kB / 0.5 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.041e-05/0.1144, allocations: 12.42 kB / 0.5 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005767/0.1149, allocations: 285.2 kB / 0.5003 GB, free: 15.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 2.584e-06/0.115, allocations: 0 / 0.5003 GB, free: 15.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.001384/0.1164, allocations: 0.6116 MB / 0.5009 GB, free: 14.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.1164, allocations: 140.9 kB / 0.501 GB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005425/0.117, allocations: 0.5172 MB / 0.5015 GB, free: 14.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.251e-05/0.117, allocations: 45.7 kB / 0.5015 GB, free: 14.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.1172, allocations: 241.4 kB / 0.5018 GB, free: 13.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.1173, allocations: 126.4 kB / 0.5019 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.1175, allocations: 118.2 kB / 0.502 GB, free: 13.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1176, allocations: 366.7 kB / 0.5024 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.1181, allocations: 165 kB / 0.5025 GB, free: 13.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004552/0.1185, allocations: 252.9 kB / 0.5028 GB, free: 12.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006643/0.1192, allocations: 305.2 kB / 0.503 GB, free: 12.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1192, allocations: 0 / 0.503 GB, free: 12.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009331/0.1202, allocations: 482.2 kB / 0.5035 GB, free: 12.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.1202, allocations: 4 kB / 0.5035 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1202, allocations: 7.938 kB / 0.5035 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1202, allocations: 0 / 0.5035 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.1205, allocations: 71.83 kB / 0.5036 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.1205, allocations: 0 / 0.5036 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.1209, allocations: 83.59 kB / 0.5037 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.1209, allocations: 16 kB / 0.5037 GB, free: 11.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,timer.entryTime,$PRE.timer.entryTime,timer.u,triggeredTrapezoid.T,triggeredTrapezoid.rate,triggeredTrapezoid.endValue,onOffController.y,$PRE.onOffController.y,hysteresis.y,$PRE.hysteresis.y,logicalSwitch.y,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,lessEqual.y,less.y,greaterEqual.y,greater.y,lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,change1.y,change1.u,$PRE.change1.u,fallingEdge.not_u,$PRE.fallingEdge.not_u,fallingEdge.y,edge1.y,edge1.u,$PRE.edge1.u,pre1.y,pre1.u,$PRE.pre1.u,nand.y,nor.y,xor.y,and1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002357/0.1212, allocations: 219 kB / 0.5039 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.615e-05/0.1212, allocations: 55.38 kB / 0.5039 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.1214, allocations: 65.17 kB / 0.504 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1214, allocations: 0 / 0.504 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1214, allocations: 0 / 0.504 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1215, allocations: 136.3 kB / 0.5041 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.37e-05/0.1216, allocations: 16 kB / 0.5041 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.1219, allocations: 55.94 kB / 0.5042 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.1221, allocations: 68.34 kB / 0.5043 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001174/0.1233, allocations: 0.5698 MB / 0.5048 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001026/0.1243, allocations: 0.6431 MB / 0.5055 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004243/0.1247, allocations: 219.4 kB / 0.5057 GB, free: 9.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003666/0.1251, allocations: 359.1 kB / 0.506 GB, free: 9.496 MB / 398.1 MB Notification: Performance of Backend: time 4.21e-07/0.1251, allocations: 0 / 0.506 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.1269, allocations: 0.6906 MB / 0.5067 GB, free: 8.844 MB / 398.1 MB Notification: Performance of SimCode: time 0.00139/0.1283, allocations: 1.255 MB / 0.5079 GB, free: 7.539 MB / 398.1 MB Notification: Performance of Templates: time 0.01322/0.1415, allocations: 7.884 MB / 0.5156 GB, free: 15.66 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Logical/Logical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches