Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007661/0.0007661, allocations: 94.02 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008281/0.0008281, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.000247, allocations: 8 kB / 308.4 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09834/0.0986, allocations: 51.52 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002469/0.1011, allocations: 1.728 MB / 361.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.1033, allocations: 1.246 MB / 362.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001828/0.1036, allocations: 4 kB / 362.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008354/0.1044, allocations: 283.4 kB / 363.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005855/0.105, allocations: 227.3 kB / 363.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005513/0.1056, allocations: 207.2 kB / 363.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004277/0.106, allocations: 351.1 kB / 363.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.1062, allocations: 72.69 kB / 364 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.1064, allocations: 123.3 kB / 364.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.1066, allocations: 139.3 kB / 364.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.08e-05/0.1067, allocations: 4 kB / 364.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.1068, allocations: 67.95 kB / 364.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.738e-05/0.107, allocations: 71.69 kB / 364.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.1071, allocations: 144.8 kB / 364.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.1074, allocations: 263.7 kB / 364.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.1075, allocations: 4 kB / 364.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1075, allocations: 0 / 364.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1075, allocations: 0 / 364.8 MB, free: 8.336 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009417/0.1084, allocations: 0.6261 MB / 365.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1085, allocations: 12.03 kB / 365.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.361e-05/0.1086, allocations: 36.56 kB / 365.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.109, allocations: 338.3 kB / 365.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.109, allocations: 8.359 kB / 365.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.1091, allocations: 16.12 kB / 365.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.1094, allocations: 147.5 kB / 366 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.1094, allocations: 4 kB / 366 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.1094, allocations: 4 kB / 366 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.1094, allocations: 4 kB / 366 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.1096, allocations: 67.97 kB / 366 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007176/0.1103, allocations: 0.4885 MB / 366.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.1107, allocations: 134.7 kB / 366.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.1108, allocations: 56.77 kB / 366.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.1108, allocations: 4 kB / 366.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002639/0.1111, allocations: 111.3 kB / 366.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.883e-06/0.1111, allocations: 0 / 366.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005135/0.1116, allocations: 217.1 kB / 367 MB, free: 5.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.1117, allocations: 106.8 kB / 367.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/0.1123, allocations: 457.6 kB / 367.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.1123, allocations: 33.7 kB / 367.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.1125, allocations: 175.9 kB / 367.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.207e-05/0.1125, allocations: 39.45 kB / 367.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.152e-05/0.1126, allocations: 29.7 kB / 367.9 MB, free: 5.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1127, allocations: 346.8 kB / 368.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.1128, allocations: 39.97 kB / 368.2 MB, free: 4.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.113, allocations: 101.9 kB / 368.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.1132, allocations: 109.2 kB / 368.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1132, allocations: 0 / 368.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003333/0.1136, allocations: 173.2 kB / 368.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1136, allocations: 7.938 kB / 368.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.1136, allocations: 7.938 kB / 368.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1136, allocations: 0 / 368.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.1138, allocations: 31.98 kB / 368.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1138, allocations: 4 kB / 368.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.1139, allocations: 15.84 kB / 368.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.1139, allocations: 8 kB / 368.7 MB, free: 4.148 MB / 302.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: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.00019/0.1141, allocations: 183.5 kB / 368.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.1142, allocations: 35.56 kB / 368.9 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.8e-05/0.1143, allocations: 34.97 kB / 368.9 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.1143, allocations: 0 / 368.9 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1143, allocations: 8 kB / 368.9 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1143, allocations: 3.984 kB / 369 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.1146, allocations: 301.4 kB / 369.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1146, allocations: 0 / 369.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.924e-05/0.1146, allocations: 12 kB / 369.3 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1146, allocations: 3.938 kB / 369.3 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.1146, allocations: 7.984 kB / 369.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.1147, allocations: 0 / 369.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1147, allocations: 3.938 kB / 369.3 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.115, allocations: 215.7 kB / 369.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-05/0.1151, allocations: 108.7 kB / 369.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.618e-05/0.1152, allocations: 11.94 kB / 369.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.221e-05/0.1153, allocations: 11.98 kB / 369.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.737e-05/0.1153, allocations: 11.98 kB / 369.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.1153, allocations: 4 kB / 369.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003555/0.1157, allocations: 331.1 kB / 370 MB, free: 2.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1157, allocations: 4 kB / 370 MB, free: 2.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002991/0.116, allocations: 55.98 kB / 370 MB, free: 2.723 MB / 302.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009392/0.117, allocations: 419.3 kB / 370.4 MB, free: 2.445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.1173, allocations: 115.9 kB / 370.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.1173, allocations: 4 kB / 370.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.1174, allocations: 60.05 kB / 370.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.1179, allocations: 70.41 kB / 370.7 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008869/0.1188, allocations: 0.6104 MB / 371.3 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.1192, allocations: 0.7794 MB / 372.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.399e-05/0.1192, allocations: 35.44 kB / 372.1 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1193, allocations: 3.938 kB / 372.1 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of Templates: time 0.1605/0.2797, allocations: 4.219 MB / 376.3 MB, free: 17.95 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches