Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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) 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(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009518/0.0009519, allocations: 91.05 kB / 16.3 MB, free: 5.996 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.0009143/0.0009144, allocations: 187.1 kB / 17.2 MB, free: 5.914 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.315/1.315, allocations: 223.2 MB / 241.1 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002608, allocations: 7.938 kB / 300.7 MB, free: 6.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09393/0.0942, allocations: 50.41 MB / 351.1 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00197/0.09622, allocations: 1.645 MB / 352.8 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.09768, allocations: 1.014 MB / 353.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.0978, allocations: 3.938 kB / 353.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006794/0.09849, allocations: 270.1 kB / 354.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003666/0.09886, allocations: 171.6 kB / 354.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005617/0.09943, allocations: 243.2 kB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.09969, allocations: 207.6 kB / 354.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.09981, allocations: 36.58 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.09996, allocations: 123.5 kB / 354.8 MB, free: 352 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.1001, allocations: 119.5 kB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.1001, allocations: 8 kB / 354.9 MB, free: 224 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1002, allocations: 47.91 kB / 355 MB, free: 176 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.231e-05/0.1003, allocations: 75.73 kB / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.264e-05/0.1004, allocations: 69.56 kB / 355.1 MB, free: 24 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.1006, allocations: 247.7 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.1007, allocations: 0 / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.1007, allocations: 0 / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.1007, allocations: 0 / 355.4 MB, free: 15.78 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.0008006/0.1015, allocations: 0.626 MB / 356 MB, free: 15.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.1015, allocations: 12.03 kB / 356 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.183e-05/0.1016, allocations: 35.58 kB / 356 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004036/0.102, allocations: 315 kB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.102, allocations: 8 kB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.1021, allocations: 12 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.1023, allocations: 144 kB / 356.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.1023, allocations: 0 / 356.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.1024, allocations: 8 kB / 356.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.1024, allocations: 0 / 356.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.1025, allocations: 79.78 kB / 356.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006658/0.1032, allocations: 0.4925 MB / 357.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002836/0.1035, allocations: 126.7 kB / 357.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.1035, allocations: 8 kB / 357.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002086/0.1038, allocations: 111.3 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.1038, allocations: 0 / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004493/0.1042, allocations: 212.4 kB / 357.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.1043, allocations: 110.8 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000435/0.1047, allocations: 428.4 kB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.1048, allocations: 33.7 kB / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1049, allocations: 164 kB / 358.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.219e-05/0.1049, allocations: 47.44 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-06/0.1049, allocations: 4 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1051, allocations: 342.8 kB / 358.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.682e-05/0.1052, allocations: 47.94 kB / 358.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.1053, allocations: 106.8 kB / 358.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.766e-05/0.1054, allocations: 40 kB / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1054, allocations: 0 / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002731/0.1057, allocations: 177.2 kB / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1057, allocations: 4 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1057, allocations: 4.062 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1057, allocations: 4 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.1059, allocations: 23.92 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1059, allocations: 4 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.979e-05/0.106, allocations: 23.83 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.106, allocations: 4 kB / 359.1 MB, free: 11.81 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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.1062, allocations: 171.5 kB / 359.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.42e-05/0.1062, allocations: 31.7 kB / 359.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.252e-05/0.1063, allocations: 30.94 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1063, allocations: 4 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1063, allocations: 3.938 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1063, allocations: 0 / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.1065, allocations: 305.3 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1065, allocations: 0 / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.712e-05/0.1066, allocations: 11.94 kB / 359.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1066, allocations: 4 kB / 359.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.1066, allocations: 7.984 kB / 359.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.1066, allocations: 8 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1066, allocations: 0 / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.107, allocations: 199.4 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.51e-05/0.1071, allocations: 120.6 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.1071, allocations: 7.938 kB / 360 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.459e-05/0.1072, allocations: 8 kB / 360 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.1073, allocations: 19.97 kB / 360 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.1073, allocations: 8 kB / 360 MB, free: 10.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002999/0.1076, allocations: 311 kB / 360.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1076, allocations: 0 / 360.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002812/0.1079, allocations: 48.25 kB / 360.3 MB, free: 10.45 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009074/0.1088, allocations: 423.4 kB / 360.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002867/0.1091, allocations: 123.8 kB / 360.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1091, allocations: 3.938 kB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.1092, allocations: 63.91 kB / 360.9 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.1096, allocations: 65.31 kB / 361 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000727/0.1103, allocations: 0.527 MB / 361.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.1106, allocations: 0.7835 MB / 362.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.1108, allocations: 38.27 kB / 362.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.763e-05/0.1108, allocations: 27.42 kB / 362.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1108, allocations: 0 / 362.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of Templates: time 0.00652/0.1174, allocations: 3.492 MB / 365.9 MB, free: 5.047 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches