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.001258/0.001258, allocations: 107 kB / 21.18 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.0014/0.0014, allocations: 214.7 kB / 24.48 MB, free: 3.941 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.426/1.426, allocations: 230.6 MB / 258.2 MB, free: 7.777 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.002514/0.002514, allocations: 47.92 kB / 378.9 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2633, allocations: 53.37 MB / 432.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004653/0.268, allocations: 1.977 MB / 434.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003155/0.2711, allocations: 1.224 MB / 435.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2713, allocations: 0 / 435.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.2724, allocations: 327.1 kB / 435.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007264/0.2731, allocations: 255.1 kB / 436.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006883/0.2738, allocations: 242.6 kB / 436.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005898/0.2744, allocations: 359.1 kB / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.2746, allocations: 40.72 kB / 436.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/0.2749, allocations: 151.4 kB / 436.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002916/0.2752, allocations: 163.4 kB / 437 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.2752, allocations: 20 kB / 437 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002622/0.2755, allocations: 91.86 kB / 437.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.2756, allocations: 91.69 kB / 437.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.2758, allocations: 103.3 kB / 437.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006243/0.2764, allocations: 365.3 kB / 437.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2764, allocations: 0 / 437.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2764, allocations: 0 / 437.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2764, allocations: 4 kB / 437.7 MB, free: 1.297 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.001307/0.2777, allocations: 0.6049 MB / 438.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.2778, allocations: 8.031 kB / 438.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.2779, allocations: 36.7 kB / 438.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/0.2785, allocations: 272.8 kB / 438.6 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.2785, allocations: 12.38 kB / 438.6 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.2785, allocations: 16.12 kB / 438.6 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/0.2789, allocations: 117.6 kB / 438.7 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.2789, allocations: 0 / 438.7 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.279, allocations: 4 kB / 438.7 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.279, allocations: 4 kB / 438.8 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.2792, allocations: 81.38 kB / 438.8 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009487/0.2802, allocations: 412.1 kB / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000489/0.2807, allocations: 130.8 kB / 439.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.2809, allocations: 48.83 kB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.2809, allocations: 4 kB / 439.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003382/0.2812, allocations: 121.9 kB / 439.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.134e-06/0.2812, allocations: 0 / 439.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007138/0.2819, allocations: 225.3 kB / 439.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.282, allocations: 55.41 kB / 439.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007952/0.2828, allocations: 465.6 kB / 440.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.2828, allocations: 37.64 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.283, allocations: 172 kB / 440.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.013e-05/0.2831, allocations: 39.69 kB / 440.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.255e-05/0.2832, allocations: 41.7 kB / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.2834, allocations: 350.8 kB / 440.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.2836, allocations: 47.92 kB / 440.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.2838, allocations: 146.2 kB / 441.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.2841, allocations: 113.5 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.2841, allocations: 0 / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005084/0.2847, allocations: 185.4 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2847, allocations: 7.938 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2847, allocations: 0 / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.2847, allocations: 7.938 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.2849, allocations: 19.98 kB / 441.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.2849, allocations: 4 kB / 441.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.285, allocations: 19.95 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.285, allocations: 11.98 kB / 441.4 MB, free: 13.32 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.0002286/0.2853, allocations: 171.5 kB / 441.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.804e-05/0.2853, allocations: 31.81 kB / 441.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005589/0.2859, allocations: 200.4 kB / 441.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.2859, allocations: 3.984 kB / 441.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2859, allocations: 4 kB / 441.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2859, allocations: 0 / 441.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003435/0.2863, allocations: 229.1 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.2863, allocations: 4 kB / 442.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.2863, allocations: 15.92 kB / 442.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2863, allocations: 0 / 442.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.2864, allocations: 11.98 kB / 442.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.2864, allocations: 3.938 kB / 442.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2864, allocations: 0 / 442.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006475/0.287, allocations: 219.4 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-05/0.2871, allocations: 39.73 kB / 442.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.238e-05/0.2872, allocations: 4 kB / 442.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.2873, allocations: 11.94 kB / 442.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.2874, allocations: 23.91 kB / 442.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.2874, allocations: 4 kB / 442.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005438/0.288, allocations: 339.1 kB / 442.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.288, allocations: 0 / 442.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004961/0.2885, allocations: 51.94 kB / 442.8 MB, free: 11.93 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.001789/0.2902, allocations: 451.2 kB / 443.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003357/0.2906, allocations: 127.9 kB / 443.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2906, allocations: 0 / 443.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.2907, allocations: 59.92 kB / 443.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.2912, allocations: 79.77 kB / 443.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008476/0.292, allocations: 0.5168 MB / 444 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.2922, allocations: 178.2 kB / 444.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.2923, allocations: 42.27 kB / 444.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.581e-05/0.2924, allocations: 35.36 kB / 444.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2924, allocations: 4 kB / 444.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of Templates: time 0.008974/0.3014, allocations: 4.261 MB / 448.5 MB, free: 6.375 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 -s gbode -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: 4.335190755009535]