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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009739/0.000974, allocations: 170.4 kB / 8.475 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.181/1.181, allocations: 205.2 MB / 214.1 MB, free: 5.078 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008678/0.0008677, allocations: 91.25 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.39e-06/5.43e-06, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06757/0.06759, allocations: 47.57 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.247/0.3147, allocations: 78.19 MB / 440.7 MB, free: 10.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/0.315, allocations: 67.22 kB / 440.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02278/0.3377, allocations: 8.541 MB / 449.3 MB, free: 9.188 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.296e-05/0.3378, allocations: 3.875 kB / 449.3 MB, free: 9.188 MB / 314.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.0006216/0.3384, allocations: 0.5693 MB / 449.9 MB, free: 8.648 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3385, allocations: 7.688 kB / 449.9 MB, free: 8.648 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.279e-05/0.3386, allocations: 35.44 kB / 449.9 MB, free: 8.629 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004807/0.3391, allocations: 347 kB / 450.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.3391, allocations: 7.781 kB / 450.3 MB, free: 8.363 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.3391, allocations: 3.844 kB / 450.3 MB, free: 8.363 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001439/0.3393, allocations: 63.73 kB / 450.3 MB, free: 8.359 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.3395, allocations: 136.3 kB / 450.5 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.3395, allocations: 3.938 kB / 450.5 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.3395, allocations: 0 / 450.5 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.3395, allocations: 7.625 kB / 450.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000573/0.3401, allocations: 484.9 kB / 451 MB, free: 7.945 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.3403, allocations: 113.4 kB / 451.1 MB, free: 7.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.423e-05/0.3404, allocations: 47.91 kB / 451.1 MB, free: 7.898 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.3404, allocations: 7.844 kB / 451.1 MB, free: 7.895 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001227/0.3405, allocations: 100.4 kB / 451.2 MB, free: 7.832 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 1.482e-06/0.3405, allocations: 0 / 451.2 MB, free: 7.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002615/0.3408, allocations: 149.3 kB / 451.4 MB, free: 7.766 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.3408, allocations: 106.6 kB / 451.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.3412, allocations: 379 kB / 451.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.3412, allocations: 25.7 kB / 451.9 MB, free: 7.477 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.311e-05/0.3413, allocations: 117.2 kB / 452 MB, free: 7.383 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.3413, allocations: 46.02 kB / 452 MB, free: 7.352 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-06/0.3413, allocations: 0 / 452 MB, free: 7.352 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.163e-05/0.3414, allocations: 342.5 kB / 452.4 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.946e-05/0.3415, allocations: 36.95 kB / 452.4 MB, free: 7.027 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.772e-05/0.3415, allocations: 104.2 kB / 452.5 MB, free: 6.965 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.866e-05/0.3416, allocations: 50.52 kB / 452.6 MB, free: 6.949 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3416, allocations: 0 / 452.6 MB, free: 6.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001969/0.3418, allocations: 157 kB / 452.7 MB, free: 6.891 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.3418, allocations: 3.781 kB / 452.7 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3419, allocations: 4 kB / 452.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3419, allocations: 3.859 kB / 452.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.342, allocations: 27.38 kB / 452.7 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.342, allocations: 3.844 kB / 452.8 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.3421, allocations: 23.05 kB / 452.8 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.3421, allocations: 3.844 kB / 452.8 MB, free: 6.863 MB / 314.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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.951e-05/0.3422, allocations: 113.8 kB / 452.9 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.043e-05/0.3423, allocations: 38.47 kB / 452.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002459/0.3425, allocations: 163.6 kB / 453.1 MB, free: 6.668 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3425, allocations: 7.844 kB / 453.1 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3425, allocations: 3.906 kB / 453.1 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3426, allocations: 3.984 kB / 453.1 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.3427, allocations: 286.5 kB / 453.4 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3427, allocations: 0 / 453.4 MB, free: 6.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.047e-05/0.3428, allocations: 19.27 kB / 453.4 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3428, allocations: 0 / 453.4 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.3428, allocations: 3.906 kB / 453.4 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3428, allocations: 7.625 kB / 453.4 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3428, allocations: 0 / 453.4 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001968/0.343, allocations: 183.8 kB / 453.6 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.301e-05/0.3431, allocations: 125.1 kB / 453.7 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.134e-05/0.3432, allocations: 3.781 kB / 453.7 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.811e-05/0.3433, allocations: 7.828 kB / 453.7 MB, free: 6.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.3434, allocations: 14.73 kB / 453.7 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.3434, allocations: 7.594 kB / 453.7 MB, free: 6.203 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002321/0.3436, allocations: 304.8 kB / 454 MB, free: 6.098 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002756/0.3439, allocations: 61.19 kB / 454.1 MB, free: 6.086 MB / 314.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.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006466/0.3446, allocations: 317 kB / 454.4 MB, free: 5.836 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002084/0.3448, allocations: 120.3 kB / 454.5 MB, free: 5.824 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3448, allocations: 3.938 kB / 454.5 MB, free: 5.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.136e-05/0.3449, allocations: 69.55 kB / 454.6 MB, free: 5.812 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.3452, allocations: 58.25 kB / 454.7 MB, free: 5.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000608/0.3458, allocations: 391.6 kB / 455 MB, free: 5.609 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000256/0.3461, allocations: 0.8185 MB / 455.9 MB, free: 4.852 MB / 314.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3461, allocations: 0 / 455.9 MB, free: 4.852 MB / 314.7 MB Notification: Performance of Templates: time 0.006311/0.3524, allocations: 3.486 MB / 459.3 MB, free: 3.102 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (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) 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches