Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001733/0.001733, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00198/0.00198, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 230.4 MB / 251.1 MB, free: 8.449 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 75.81 kB / 368.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3008, allocations: 53.31 MB / 422.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003761/0.3046, allocations: 2.026 MB / 424.3 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.307, allocations: 1.294 MB / 425.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.3071, allocations: 3.938 kB / 425.6 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009418/0.3081, allocations: 315.1 kB / 425.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005937/0.3087, allocations: 247.1 kB / 426.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005874/0.3093, allocations: 230.2 kB / 426.4 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004503/0.3097, allocations: 355.1 kB / 426.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.3099, allocations: 44.67 kB / 426.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002074/0.3101, allocations: 147.4 kB / 426.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002356/0.3103, allocations: 163.3 kB / 427.1 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.916e-05/0.3103, allocations: 24 kB / 427.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.3105, allocations: 87.92 kB / 427.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.3107, allocations: 87.62 kB / 427.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.3108, allocations: 131.2 kB / 427.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004913/0.3113, allocations: 361.9 kB / 427.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3113, allocations: 0 / 427.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3113, allocations: 0 / 427.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3113, allocations: 0 / 427.7 MB, free: 2.371 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.001041/0.3124, allocations: 0.6831 MB / 428.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.3124, allocations: 16.03 kB / 428.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.287e-05/0.3125, allocations: 36.7 kB / 428.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00045/0.3129, allocations: 342.6 kB / 428.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.313, allocations: 8.375 kB / 428.8 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.313, allocations: 16.12 kB / 428.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.3133, allocations: 148 kB / 429 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3133, allocations: 7.938 kB / 429 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.3133, allocations: 0 / 429 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3133, allocations: 4 kB / 429 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.3135, allocations: 67.97 kB / 429 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008255/0.3143, allocations: 0.4925 MB / 429.5 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.3147, allocations: 126.8 kB / 429.7 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.3148, allocations: 56.77 kB / 429.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.3148, allocations: 0 / 429.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.3151, allocations: 115.3 kB / 429.8 MB, free: 88 kB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.964e-06/0.3151, allocations: 0 / 429.8 MB, free: 88 kB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005762/0.3157, allocations: 220.3 kB / 430 MB, free: 15.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.294e-05/0.3158, allocations: 106.8 kB / 430.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005861/0.3164, allocations: 465.5 kB / 430.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.3164, allocations: 29.7 kB / 430.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.3166, allocations: 164 kB / 430.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.693e-05/0.3166, allocations: 47.67 kB / 430.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.67e-05/0.3167, allocations: 41.7 kB / 430.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.3169, allocations: 350.8 kB / 431.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.317, allocations: 39.98 kB / 431.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.3172, allocations: 106 kB / 431.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.3174, allocations: 106.5 kB / 431.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3174, allocations: 3.938 kB / 431.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003489/0.3178, allocations: 181.3 kB / 431.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3178, allocations: 7.938 kB / 431.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3178, allocations: 0 / 431.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.3178, allocations: 4 kB / 431.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.3179, allocations: 23.98 kB / 431.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.318, allocations: 4 kB / 431.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.3181, allocations: 20 kB / 431.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.3181, allocations: 8 kB / 431.7 MB, free: 14.09 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.0002071/0.3183, allocations: 163.5 kB / 431.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.58e-05/0.3183, allocations: 35.75 kB / 431.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000415/0.3188, allocations: 198.8 kB / 432.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3188, allocations: 4 kB / 432.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3188, allocations: 0 / 432.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3188, allocations: 4 kB / 432.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003468/0.3191, allocations: 309.4 kB / 432.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3191, allocations: 4 kB / 432.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.571e-05/0.3192, allocations: 4 kB / 432.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-05/0.3192, allocations: 15.88 kB / 432.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.3192, allocations: 4 kB / 432.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3192, allocations: 0 / 432.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3192, allocations: 3.984 kB / 432.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.3195, allocations: 196.8 kB / 432.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3196, allocations: 116.8 kB / 432.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.541e-05/0.3197, allocations: 11.94 kB / 432.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.239e-05/0.3198, allocations: 7.984 kB / 432.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.3198, allocations: 15.98 kB / 432.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.3199, allocations: 4 kB / 432.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003869/0.3202, allocations: 331.1 kB / 433.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3202, allocations: 0 / 433.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000315/0.3206, allocations: 59.92 kB / 433.2 MB, free: 12.54 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 (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.00161/0.3222, allocations: 423.2 kB / 433.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.3225, allocations: 107.9 kB / 433.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3225, allocations: 0 / 433.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.3226, allocations: 55.86 kB / 433.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00046/0.3231, allocations: 92.28 kB / 433.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000924/0.324, allocations: 0.5115 MB / 434.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.3245, allocations: 0.7753 MB / 435.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001206/0.3246, allocations: 42.27 kB / 435.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.174e-05/0.3247, allocations: 31.44 kB / 435.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3247, allocations: 0 / 435.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Templates: time 0.008562/0.3332, allocations: 3.941 MB / 439.1 MB, free: 6.707 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches