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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00208/0.00208, allocations: 103.6 kB / 21.19 MB, free: 0.5195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002662/0.002662, allocations: 214.5 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.706/1.706, allocations: 230.5 MB / 258.1 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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=5010,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=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002175, allocations: 71.84 kB / 379 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3816, allocations: 53.4 MB / 432.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003933/0.3855, allocations: 1.962 MB / 434.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002467/0.388, allocations: 1.227 MB / 435.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.3881, allocations: 3.938 kB / 435.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009127/0.389, allocations: 315.1 kB / 435.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005985/0.3896, allocations: 263.1 kB / 436.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006346/0.3902, allocations: 231 kB / 436.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004581/0.3907, allocations: 363 kB / 436.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.3909, allocations: 44.64 kB / 436.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.3911, allocations: 151.4 kB / 436.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.3913, allocations: 155.3 kB / 437.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.3913, allocations: 20 kB / 437.1 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002079/0.3915, allocations: 91.88 kB / 437.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.3916, allocations: 95.67 kB / 437.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.3917, allocations: 95.34 kB / 437.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004539/0.3922, allocations: 365.3 kB / 437.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3922, allocations: 0 / 437.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.3922, allocations: 4 kB / 437.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.722e-06/0.3922, allocations: 0 / 437.7 MB, free: 1.176 MB / 334.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.001034/0.3932, allocations: 0.6127 MB / 438.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3933, allocations: 11.98 kB / 438.3 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.372e-05/0.3934, allocations: 40.7 kB / 438.4 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004749/0.3938, allocations: 272.8 kB / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.3939, allocations: 8.359 kB / 438.7 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.3939, allocations: 12.38 kB / 438.7 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.3942, allocations: 132.8 kB / 438.8 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3942, allocations: 0 / 438.8 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.3942, allocations: 4 kB / 438.8 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3942, allocations: 4 kB / 438.8 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.3944, allocations: 71.95 kB / 438.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006746/0.3951, allocations: 416.1 kB / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.3954, allocations: 126.7 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.3955, allocations: 48.83 kB / 439.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.3955, allocations: 4 kB / 439.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.3958, allocations: 114.6 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.3958, allocations: 0 / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005321/0.3963, allocations: 233.2 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3964, allocations: 59.34 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006018/0.397, allocations: 461.5 kB / 440.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.397, allocations: 33.7 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.3972, allocations: 180 kB / 440.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.507e-05/0.3973, allocations: 35.7 kB / 440.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.989e-05/0.3973, allocations: 37.7 kB / 440.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.3975, allocations: 350.8 kB / 440.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.3977, allocations: 51.97 kB / 441 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.3979, allocations: 139.7 kB / 441.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.3981, allocations: 121.4 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3981, allocations: 0 / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003367/0.3984, allocations: 181.4 kB / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3985, allocations: 4 kB / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3985, allocations: 0 / 441.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.3985, allocations: 4 kB / 441.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.3986, allocations: 27.98 kB / 441.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.3986, allocations: 11.88 kB / 441.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.3987, allocations: 23.88 kB / 441.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.3987, allocations: 4 kB / 441.5 MB, free: 13.19 MB / 350.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.0001816/0.3989, allocations: 167.6 kB / 441.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/0.3989, allocations: 35.75 kB / 441.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004068/0.3994, allocations: 203.1 kB / 441.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3994, allocations: 0 / 441.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3994, allocations: 11.94 kB / 441.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3994, allocations: 0 / 441.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.3996, allocations: 225.1 kB / 442.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3996, allocations: 0 / 442.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-05/0.3997, allocations: 15.98 kB / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3997, allocations: 0 / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3997, allocations: 7.938 kB / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3997, allocations: 0 / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3997, allocations: 0 / 442.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.4001, allocations: 224.7 kB / 442.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.17e-05/0.4001, allocations: 35.81 kB / 442.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.4002, allocations: 8 kB / 442.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.883e-05/0.4003, allocations: 7.984 kB / 442.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.4003, allocations: 23.91 kB / 442.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.4003, allocations: 7.938 kB / 442.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003973/0.4007, allocations: 335.1 kB / 442.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4007, allocations: 0 / 442.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.401, allocations: 51.94 kB / 442.8 MB, free: 11.8 MB / 350.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,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.001675/0.4027, allocations: 455.9 kB / 443.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003235/0.403, allocations: 123.9 kB / 443.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.403, allocations: 0 / 443.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.4032, allocations: 63.91 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.4036, allocations: 76.83 kB / 443.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009791/0.4046, allocations: 0.5458 MB / 444.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.4048, allocations: 182.2 kB / 444.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.512e-05/0.4049, allocations: 31.42 kB / 444.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.4049, allocations: 0 / 444.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Templates: time 0.008392/0.4133, allocations: 4.404 MB / 448.7 MB, free: 6.039 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.971439379733056]