Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001389/0.001389, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001487/0.001487, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.574/1.574, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 54.53 kB / 347.7 MB, free: 9.398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.289, allocations: 49.16 MB / 396.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003462/0.2925, allocations: 1.93 MB / 398.8 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.2943, allocations: 1.024 MB / 399.8 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.2944, allocations: 6.188 kB / 399.8 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008697/0.2952, allocations: 313.4 kB / 400.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004403/0.2957, allocations: 213.1 kB / 400.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005969/0.2963, allocations: 271.4 kB / 400.6 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.2966, allocations: 339.4 kB / 400.9 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.2968, allocations: 40.77 kB / 400.9 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.297, allocations: 140.6 kB / 401.1 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.2972, allocations: 152.6 kB / 401.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.2972, allocations: 18.88 kB / 401.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.2974, allocations: 91.11 kB / 401.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.2975, allocations: 92.97 kB / 401.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.2976, allocations: 92.83 kB / 401.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.298, allocations: 353.2 kB / 401.9 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.298, allocations: 0 / 401.9 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.298, allocations: 1.062 kB / 401.9 MB, free: 6.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.298, allocations: 0 / 401.9 MB, free: 6.531 MB / 318.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.0008458/0.2988, allocations: 0.5934 MB / 402.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2989, allocations: 13.58 kB / 402.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.299, allocations: 36.73 kB / 402.5 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.2993, allocations: 273.4 kB / 402.8 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.2993, allocations: 16.64 kB / 402.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.2994, allocations: 12.16 kB / 402.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.2996, allocations: 124.1 kB / 402.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2996, allocations: 1.219 kB / 402.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.2996, allocations: 0.625 kB / 402.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2996, allocations: 2.594 kB / 402.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.2998, allocations: 73.23 kB / 403 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006029/0.3004, allocations: 413.4 kB / 403.4 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003187/0.3007, allocations: 129.9 kB / 403.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.3008, allocations: 50.36 kB / 403.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.3009, allocations: 2.156 kB / 403.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.3011, allocations: 110.5 kB / 403.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.924e-06/0.3011, allocations: 0 / 403.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005489/0.3017, allocations: 233.5 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.3017, allocations: 57.81 kB / 404 MB, free: 5.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004858/0.3022, allocations: 434.5 kB / 404.4 MB, free: 4.855 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.3022, allocations: 32.27 kB / 404.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.3023, allocations: 172.7 kB / 404.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.232e-05/0.3024, allocations: 37.47 kB / 404.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-05/0.3025, allocations: 42.09 kB / 404.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.268e-05/0.3025, allocations: 346 kB / 405 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.3027, allocations: 42.75 kB / 405.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.3028, allocations: 153.9 kB / 405.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.3031, allocations: 110.5 kB / 405.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3031, allocations: 0 / 405.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00034/0.3034, allocations: 183.7 kB / 405.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3034, allocations: 6.562 kB / 405.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3034, allocations: 0 / 405.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3034, allocations: 6.312 kB / 405.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.3036, allocations: 25.88 kB / 405.5 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.3036, allocations: 5.344 kB / 405.5 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.3037, allocations: 21.31 kB / 405.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.3037, allocations: 4.656 kB / 405.6 MB, free: 3.965 MB / 318.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.0001683/0.3039, allocations: 172.3 kB / 405.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.433e-05/0.3039, allocations: 29.28 kB / 405.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004123/0.3043, allocations: 206 kB / 406 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3043, allocations: 1.375 kB / 406 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3043, allocations: 1.375 kB / 406 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3043, allocations: 4.797 kB / 406 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.3046, allocations: 218.1 kB / 406.2 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3046, allocations: 3.938 kB / 406.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.161e-05/0.3046, allocations: 18.97 kB / 406.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.637e-05/0.3047, allocations: 0.5625 kB / 406.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.3047, allocations: 3.547 kB / 406.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3047, allocations: 6.156 kB / 406.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3047, allocations: 0 / 406.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003528/0.305, allocations: 214 kB / 406.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.3051, allocations: 33.88 kB / 406.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/0.3051, allocations: 11.88 kB / 406.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.617e-05/0.3052, allocations: 10.45 kB / 406.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.18e-05/0.3053, allocations: 16.44 kB / 406.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.3053, allocations: 6.25 kB / 406.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000335/0.3056, allocations: 316.8 kB / 406.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3056, allocations: 0 / 406.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.3059, allocations: 58.64 kB / 406.9 MB, free: 3.195 MB / 318.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.001575/0.3075, allocations: 455.6 kB / 407.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003072/0.3078, allocations: 127 kB / 407.4 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3078, allocations: 0 / 407.4 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.3079, allocations: 63.75 kB / 407.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.3084, allocations: 75.05 kB / 407.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007984/0.3091, allocations: 0.4977 MB / 408.1 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001845/0.3093, allocations: 168.5 kB / 408.2 MB, free: 2.332 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.3095, allocations: 49.41 kB / 408.3 MB, free: 2.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.111e-05/0.3095, allocations: 30.75 kB / 408.3 MB, free: 2.309 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3095, allocations: 0 / 408.3 MB, free: 2.309 MB / 318.1 MB Notification: Performance of Templates: time 0.01036/0.3199, allocations: 4.176 MB / 412.5 MB, free: 496 kB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.880230417475104]