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.001688/0.001688, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.00195/0.00195, allocations: 161.7 kB / 24.27 MB, free: 168 kB / 18.57 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.567/1.567, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 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 1.673e-06/1.673e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.52e-05/2.687e-05, allocations: 6.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00409/0.004117, allocations: 1.992 MB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002945/0.007063, allocations: 1.215 MB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.007226, allocations: 7.938 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009616/0.008188, allocations: 315 kB / 275.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007822/0.00897, allocations: 270.9 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006422/0.009612, allocations: 223.3 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006012/0.01021, allocations: 367 kB / 276.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.01042, allocations: 40.89 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00047/0.01089, allocations: 195.5 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.01117, allocations: 143.6 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.989e-05/0.01122, allocations: 20 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.01146, allocations: 87.86 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.01159, allocations: 87.69 kB / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.01173, allocations: 71.77 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005863/0.01231, allocations: 374.7 kB / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.01232, allocations: 0 / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01232, allocations: 3.938 kB / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.01233, allocations: 0 / 277.7 MB, free: 12.46 MB / 266.7 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.001205/0.01353, allocations: 0.5894 MB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.01357, allocations: 16.03 kB / 278.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.01368, allocations: 44.7 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.01421, allocations: 288 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.01424, allocations: 8.375 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.01426, allocations: 8.375 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.01462, allocations: 126 kB / 278.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.01464, allocations: 7.938 kB / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.01467, allocations: 0 / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.373e-06/0.01467, allocations: 0 / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.01489, allocations: 83.89 kB / 278.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008443/0.01574, allocations: 412.1 kB / 279.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003751/0.01611, allocations: 126.8 kB / 279.4 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.01624, allocations: 44.83 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.01626, allocations: 4 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.01653, allocations: 123.2 kB / 279.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.01653, allocations: 4 kB / 279.5 MB, free: 10.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005854/0.01712, allocations: 229.4 kB / 279.7 MB, free: 10.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.01717, allocations: 55.41 kB / 279.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006326/0.0178, allocations: 465.5 kB / 280.3 MB, free: 9.711 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.01783, allocations: 33.7 kB / 280.3 MB, free: 9.672 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.018, allocations: 172 kB / 280.5 MB, free: 9.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.413e-05/0.01805, allocations: 43.69 kB / 280.5 MB, free: 9.457 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.419e-05/0.01812, allocations: 37.7 kB / 280.5 MB, free: 9.414 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.01833, allocations: 346.8 kB / 280.9 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.01846, allocations: 55.91 kB / 280.9 MB, free: 9.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.01866, allocations: 142.8 kB / 281.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.01892, allocations: 110.1 kB / 281.2 MB, free: 8.734 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.01892, allocations: 0 / 281.2 MB, free: 8.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00042/0.01934, allocations: 197.2 kB / 281.4 MB, free: 8.535 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.01936, allocations: 4 kB / 281.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.01936, allocations: 0 / 281.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.01938, allocations: 8.094 kB / 281.4 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.01951, allocations: 23.98 kB / 281.4 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.01952, allocations: 7.938 kB / 281.4 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.01965, allocations: 19.94 kB / 281.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.01967, allocations: 7.938 kB / 281.4 MB, free: 8.465 MB / 266.7 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.0004574/0.02013, allocations: 179.7 kB / 281.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.476e-05/0.0202, allocations: 35.81 kB / 281.7 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006554/0.02086, allocations: 198.7 kB / 281.8 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.02086, allocations: 4 kB / 281.8 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.02087, allocations: 0 / 281.8 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.02088, allocations: 7.938 kB / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004313/0.02131, allocations: 225.1 kB / 282.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.02132, allocations: 0 / 282.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.207e-05/0.02138, allocations: 19.92 kB / 282.1 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.02138, allocations: 0 / 282.1 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.0214, allocations: 8 kB / 282.1 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.0214, allocations: 0 / 282.1 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.0214, allocations: 0 / 282.1 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.02186, allocations: 228.8 kB / 282.3 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.02192, allocations: 31.75 kB / 282.4 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.02196, allocations: 4 kB / 282.4 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.503e-05/0.02206, allocations: 15.92 kB / 282.4 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/0.02213, allocations: 15.97 kB / 282.4 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.02215, allocations: 8 kB / 282.4 MB, free: 7.445 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004528/0.0226, allocations: 335.1 kB / 282.7 MB, free: 7.121 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0226, allocations: 0 / 282.7 MB, free: 7.121 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003148/0.02292, allocations: 55.92 kB / 282.8 MB, free: 7.066 MB / 266.7 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.002048/0.02496, allocations: 457.9 kB / 283.2 MB, free: 6.797 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003655/0.02533, allocations: 123.8 kB / 283.4 MB, free: 6.676 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.02533, allocations: 0 / 283.4 MB, free: 6.676 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.02551, allocations: 63.91 kB / 283.4 MB, free: 6.613 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.02599, allocations: 90.19 kB / 283.5 MB, free: 6.531 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.027, allocations: 0.518 MB / 284 MB, free: 5.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.02721, allocations: 174.3 kB / 284.2 MB, free: 5.789 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001368/0.02734, allocations: 50.25 kB / 284.2 MB, free: 5.742 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.251e-05/0.02743, allocations: 28.48 kB / 284.3 MB, free: 5.715 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.02744, allocations: 0 / 284.3 MB, free: 5.715 MB / 266.7 MB Notification: Performance of Templates: time 0.009537/0.03697, allocations: 4.052 MB / 288.3 MB, free: 1.711 MB / 266.7 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.433265874045901]