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.001395/0.001395, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001402/0.001402, allocations: 213.1 kB / 24.48 MB, free: 3.957 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.451/1.451, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.001533/0.001533, allocations: 51.92 kB / 379 MB, free: 2.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2804, allocations: 53.36 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004441/0.2848, allocations: 1.973 MB / 434.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002733/0.2876, allocations: 1.236 MB / 435.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.2877, allocations: 3.938 kB / 435.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.2888, allocations: 315.1 kB / 435.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006942/0.2895, allocations: 263.1 kB / 436.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.2902, allocations: 226.8 kB / 436.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004706/0.2907, allocations: 363 kB / 436.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.2909, allocations: 36.92 kB / 436.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.2911, allocations: 155.4 kB / 436.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.2913, allocations: 159.4 kB / 437 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.2914, allocations: 20 kB / 437 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002426/0.2916, allocations: 91.86 kB / 437.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.2918, allocations: 95.67 kB / 437.2 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2919, allocations: 99.34 kB / 437.3 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006083/0.2925, allocations: 364.2 kB / 437.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2925, allocations: 0 / 437.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2925, allocations: 0 / 437.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.2925, allocations: 0 / 437.7 MB, free: 1.348 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.001145/0.2937, allocations: 0.6127 MB / 438.3 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.2937, allocations: 12.02 kB / 438.3 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.2938, allocations: 36.7 kB / 438.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.2943, allocations: 280.8 kB / 438.6 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.2943, allocations: 4.375 kB / 438.6 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.2944, allocations: 20.11 kB / 438.6 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.2947, allocations: 117.6 kB / 438.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2947, allocations: 0 / 438.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.2947, allocations: 4 kB / 438.8 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.2947, allocations: 4 kB / 438.8 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.2949, allocations: 75.81 kB / 438.8 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007428/0.2956, allocations: 412.2 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.296, allocations: 142.6 kB / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.2961, allocations: 44.83 kB / 439.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.2961, allocations: 4 kB / 439.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.2964, allocations: 111.3 kB / 439.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.654e-06/0.2964, allocations: 0 / 439.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005749/0.297, allocations: 229.3 kB / 439.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/0.297, allocations: 63.41 kB / 439.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006179/0.2977, allocations: 457.6 kB / 440.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.2977, allocations: 33.64 kB / 440.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.2978, allocations: 179.9 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.298, allocations: 35.69 kB / 440.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.918e-05/0.298, allocations: 41.7 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000258/0.2983, allocations: 350.8 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.2984, allocations: 43.98 kB / 440.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002756/0.2987, allocations: 147.6 kB / 441.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/0.2989, allocations: 117.9 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2989, allocations: 0 / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004/0.2993, allocations: 181.4 kB / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2993, allocations: 4 kB / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2993, allocations: 0 / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.2994, allocations: 7.938 kB / 441.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.2995, allocations: 23.92 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.2995, allocations: 4 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.2996, allocations: 19.95 kB / 441.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.2996, allocations: 7.984 kB / 441.4 MB, free: 13.36 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.0001806/0.2998, allocations: 171.5 kB / 441.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.114e-05/0.2999, allocations: 31.81 kB / 441.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004316/0.3003, allocations: 204.4 kB / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3003, allocations: 0 / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3003, allocations: 3.984 kB / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3003, allocations: 0 / 441.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.3006, allocations: 229.1 kB / 442.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3006, allocations: 0 / 442.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.605e-05/0.3006, allocations: 19.94 kB / 442.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3006, allocations: 0 / 442.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.3007, allocations: 15.92 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3007, allocations: 3.938 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3007, allocations: 0 / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003729/0.301, allocations: 219.4 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.3011, allocations: 31.8 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.3011, allocations: 8 kB / 442.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.3012, allocations: 11.94 kB / 442.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.3013, allocations: 19.97 kB / 442.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.3013, allocations: 4 kB / 442.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004139/0.3017, allocations: 339.1 kB / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3017, allocations: 0 / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.302, allocations: 47.94 kB / 442.8 MB, free: 11.98 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.001764/0.3038, allocations: 467.4 kB / 443.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.3042, allocations: 123.9 kB / 443.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3042, allocations: 0 / 443.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.3043, allocations: 67.19 kB / 443.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.3048, allocations: 73.89 kB / 443.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009616/0.3057, allocations: 0.5458 MB / 444 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.3059, allocations: 182.2 kB / 444.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.455e-05/0.306, allocations: 27.44 kB / 444.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.306, allocations: 0 / 444.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of Templates: time 0.007962/0.314, allocations: 4.399 MB / 448.6 MB, free: 6.246 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/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_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: 7.755075962981209]