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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001578/0.001578, allocations: 114.7 kB / 19.17 MB, free: 3.895 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.001796/0.001796, allocations: 214.6 kB / 22.13 MB, free: 0.9414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.485/1.485, allocations: 230.4 MB / 255.4 MB, free: 15.01 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-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=5010,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=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "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.002014/0.002014, allocations: 67.84 kB / 374.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1067, allocations: 53.31 MB / 428.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003701/0.1104, allocations: 2.041 MB / 430.1 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.1128, allocations: 1.282 MB / 431.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.1129, allocations: 4 kB / 431.4 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008794/0.1138, allocations: 303.1 kB / 431.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005869/0.1144, allocations: 263.1 kB / 431.9 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005859/0.115, allocations: 219.2 kB / 432.1 MB, free: 240 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1933/0.3083, allocations: 359.4 kB / 432.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.3085, allocations: 37.72 kB / 432.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002738/0.3088, allocations: 150.5 kB / 432.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.309, allocations: 164 kB / 432.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.187e-05/0.309, allocations: 18.41 kB / 432.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.3093, allocations: 84.19 kB / 432.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.3094, allocations: 94.94 kB / 433 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.3095, allocations: 123.9 kB / 433.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.3099, allocations: 367.3 kB / 433.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3099, allocations: 0.75 kB / 433.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3099, allocations: 0.9688 kB / 433.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3099, allocations: 0 / 433.5 MB, free: 8.207 MB / 350.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.0008706/0.3108, allocations: 0.6864 MB / 434.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3108, allocations: 10.66 kB / 434.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.064e-05/0.3109, allocations: 35.45 kB / 434.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004011/0.3113, allocations: 339 kB / 434.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.3114, allocations: 9.656 kB / 434.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.3114, allocations: 12.25 kB / 434.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.3116, allocations: 157.5 kB / 434.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3116, allocations: 0.6562 kB / 434.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.3116, allocations: 4.219 kB / 434.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.3117, allocations: 5.109 kB / 434.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.3118, allocations: 65.8 kB / 434.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005606/0.3124, allocations: 498.8 kB / 435.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.3126, allocations: 126.1 kB / 435.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.05e-05/0.3127, allocations: 47.92 kB / 435.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.3127, allocations: 3.312 kB / 435.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.3129, allocations: 117.5 kB / 435.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3129, allocations: 1.375 kB / 435.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004539/0.3134, allocations: 218.2 kB / 435.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.3134, allocations: 111.3 kB / 435.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004202/0.3139, allocations: 456.5 kB / 436.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.3139, allocations: 32.39 kB / 436.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.49e-05/0.314, allocations: 174 kB / 436.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.314, allocations: 40.77 kB / 436.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.617e-05/0.314, allocations: 44.34 kB / 436.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.3141, allocations: 346.3 kB / 437 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.3142, allocations: 43.16 kB / 437 MB, free: 6.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.3143, allocations: 105.8 kB / 437.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.3145, allocations: 102.9 kB / 437.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3145, allocations: 0 / 437.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000284/0.3148, allocations: 182.9 kB / 437.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.3148, allocations: 7 kB / 437.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3148, allocations: 2.047 kB / 437.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3148, allocations: 8.656 kB / 437.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.315, allocations: 28.62 kB / 437.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.315, allocations: 1.156 kB / 437.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.606e-05/0.3151, allocations: 13.89 kB / 437.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.3151, allocations: 8.625 kB / 437.5 MB, free: 6.047 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.0001232/0.3152, allocations: 169.1 kB / 437.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.3152, allocations: 33.28 kB / 437.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.596e-05/0.3153, allocations: 40.75 kB / 437.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3153, allocations: 5.922 kB / 437.7 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3153, allocations: 4.406 kB / 437.7 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3153, allocations: 2.188 kB / 437.7 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.3155, allocations: 309.3 kB / 438 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3155, allocations: 2.672 kB / 438 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.742e-05/0.3156, allocations: 7.516 kB / 438 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3156, allocations: 4.938 kB / 438.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.3156, allocations: 10.77 kB / 438.1 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3156, allocations: 5.344 kB / 438.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3156, allocations: 0 / 438.1 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.3159, allocations: 209 kB / 438.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.316, allocations: 103.1 kB / 438.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.397e-05/0.316, allocations: 11.16 kB / 438.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.3161, allocations: 9.797 kB / 438.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.771e-05/0.3162, allocations: 19.09 kB / 438.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.3162, allocations: 6.234 kB / 438.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003222/0.3165, allocations: 330.3 kB / 438.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3165, allocations: 0 / 438.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.3168, allocations: 58.12 kB / 438.8 MB, free: 5.414 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,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.001464/0.3182, allocations: 427.7 kB / 439.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002897/0.3185, allocations: 116.5 kB / 439.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3185, allocations: 0 / 439.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.3187, allocations: 56.83 kB / 439.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004198/0.3191, allocations: 78.03 kB / 439.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007755/0.3198, allocations: 0.5404 MB / 440 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.3201, allocations: 0.782 MB / 440.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.545e-05/0.3201, allocations: 27.25 kB / 440.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3201, allocations: 1.062 kB / 440.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of Templates: time 0.008029/0.3282, allocations: 4.327 MB / 445.1 MB, free: 3.789 MB / 350.1 MB " [Timeout remaining time 660] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.783171110000694]