Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00199/0.00199, allocations: 211 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.631/1.631, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 47.92 kB / 378.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3097, allocations: 53.37 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003827/0.3135, allocations: 1.985 MB / 433.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.316, allocations: 1.227 MB / 434.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.3161, allocations: 3.938 kB / 434.8 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009031/0.317, allocations: 303.2 kB / 435.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000656/0.3177, allocations: 271.1 kB / 435.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005896/0.3183, allocations: 234.5 kB / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004665/0.3187, allocations: 359 kB / 435.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.3189, allocations: 40.89 kB / 436 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.3191, allocations: 147.5 kB / 436.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002454/0.3194, allocations: 167.3 kB / 436.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.48e-05/0.3194, allocations: 20 kB / 436.3 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.3196, allocations: 87.94 kB / 436.4 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.3197, allocations: 91.67 kB / 436.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.3198, allocations: 91.41 kB / 436.6 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005035/0.3203, allocations: 376.6 kB / 436.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3203, allocations: 4 kB / 436.9 MB, free: 1.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3204, allocations: 0 / 436.9 MB, free: 1.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.3204, allocations: 4 kB / 436.9 MB, free: 1.328 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.001147/0.3215, allocations: 0.6049 MB / 437.5 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3215, allocations: 11.97 kB / 437.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.3217, allocations: 36.7 kB / 437.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005246/0.3222, allocations: 272.9 kB / 437.8 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.3222, allocations: 8.375 kB / 437.9 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.3222, allocations: 20.06 kB / 437.9 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.3225, allocations: 129.6 kB / 438 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3226, allocations: 0 / 438 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.3226, allocations: 0 / 438 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3226, allocations: 4 kB / 438 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.3228, allocations: 75.81 kB / 438.1 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007954/0.3236, allocations: 412.1 kB / 438.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.3239, allocations: 130.7 kB / 438.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.3241, allocations: 48.83 kB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.3241, allocations: 4 kB / 438.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002367/0.3243, allocations: 115.3 kB / 438.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.3243, allocations: 0 / 438.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005781/0.3249, allocations: 233.2 kB / 439 MB, free: 15.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3249, allocations: 55.41 kB / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005728/0.3255, allocations: 457.6 kB / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.3256, allocations: 37.7 kB / 439.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.3257, allocations: 175.9 kB / 439.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.3258, allocations: 39.69 kB / 439.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.39e-05/0.3258, allocations: 45.69 kB / 439.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.326, allocations: 342.8 kB / 440.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.3261, allocations: 47.97 kB / 440.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.3263, allocations: 139.7 kB / 440.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.3266, allocations: 117.7 kB / 440.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3266, allocations: 4.031 kB / 440.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003593/0.3269, allocations: 185.3 kB / 440.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.327, allocations: 4 kB / 440.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.327, allocations: 0 / 440.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.864e-05/0.327, allocations: 7.938 kB / 440.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3271, allocations: 27.92 kB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.3271, allocations: 4 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.3272, allocations: 15.88 kB / 440.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.3273, allocations: 16.06 kB / 440.7 MB, free: 13.34 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.0001993/0.3275, allocations: 167.6 kB / 440.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.641e-05/0.3275, allocations: 31.81 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004949/0.328, allocations: 212.3 kB / 441.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.328, allocations: 0 / 441.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.328, allocations: 4 kB / 441.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.328, allocations: 0 / 441.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.3283, allocations: 229.1 kB / 441.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3283, allocations: 0 / 441.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.446e-05/0.3284, allocations: 15.98 kB / 441.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3284, allocations: 0 / 441.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.3284, allocations: 4 kB / 441.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.3284, allocations: 3.938 kB / 441.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3284, allocations: 0 / 441.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.3289, allocations: 231.3 kB / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.191e-05/0.329, allocations: 27.81 kB / 441.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.329, allocations: 4 kB / 441.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.143e-05/0.3291, allocations: 11.92 kB / 441.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.034e-05/0.3291, allocations: 19.97 kB / 441.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.3292, allocations: 12 kB / 441.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000422/0.3296, allocations: 331.1 kB / 442 MB, free: 12.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3296, allocations: 0 / 442 MB, free: 12.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.3299, allocations: 55.94 kB / 442 MB, free: 11.96 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.001843/0.3317, allocations: 460.1 kB / 442.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003372/0.3321, allocations: 119.9 kB / 442.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3321, allocations: 128 / 442.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001459/0.3322, allocations: 67.25 kB / 442.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.3327, allocations: 78.19 kB / 442.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009613/0.3336, allocations: 0.5206 MB / 443.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001831/0.3338, allocations: 174.1 kB / 443.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.3339, allocations: 42.25 kB / 443.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.133e-05/0.334, allocations: 31.44 kB / 443.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.334, allocations: 0 / 443.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Templates: time 0.01041/0.3444, allocations: 4.267 MB / 447.8 MB, free: 6.398 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 4.964119053911418]