Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001175/0.001175, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 59.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2892, allocations: 50.54 MB / 409.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003092/0.2923, allocations: 2.03 MB / 411.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.2944, allocations: 1.278 MB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2945, allocations: 7.938 kB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007941/0.2953, allocations: 299.2 kB / 412.8 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005782/0.2959, allocations: 251.1 kB / 413.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006262/0.2965, allocations: 235 kB / 413.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003885/0.2969, allocations: 363.1 kB / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.2971, allocations: 64.69 kB / 413.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.2973, allocations: 147.4 kB / 413.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.2975, allocations: 147.4 kB / 414 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.2976, allocations: 20 kB / 414 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.2978, allocations: 83.89 kB / 414.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.2979, allocations: 83.73 kB / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.298, allocations: 135.1 kB / 414.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.2985, allocations: 366.4 kB / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2985, allocations: 4 kB / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2985, allocations: 0 / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.2985, allocations: 0 / 414.7 MB, free: 12.14 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.0008829/0.2994, allocations: 0.6802 MB / 415.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2995, allocations: 8.031 kB / 415.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.096e-05/0.2995, allocations: 36.7 kB / 415.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.3, allocations: 338.7 kB / 415.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.3, allocations: 16.31 kB / 415.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/0.3, allocations: 16.12 kB / 415.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.3003, allocations: 151.1 kB / 415.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3003, allocations: 0 / 415.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.3004, allocations: 7.938 kB / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.3004, allocations: 0 / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.3006, allocations: 71.95 kB / 416 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006275/0.3012, allocations: 0.4886 MB / 416.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.3015, allocations: 130.7 kB / 416.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.3016, allocations: 52.84 kB / 416.7 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.3017, allocations: 8 kB / 416.7 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.3019, allocations: 111.3 kB / 416.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.827e-06/0.3019, allocations: 0 / 416.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004776/0.3024, allocations: 221.3 kB / 417 MB, free: 9.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.3025, allocations: 102.8 kB / 417.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/0.303, allocations: 457.6 kB / 417.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.303, allocations: 37.7 kB / 417.6 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.3031, allocations: 175.9 kB / 417.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.3032, allocations: 43.69 kB / 417.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.073e-05/0.3032, allocations: 45.64 kB / 417.9 MB, free: 8.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.3034, allocations: 342.8 kB / 418.2 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.3035, allocations: 43.97 kB / 418.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.3037, allocations: 108.3 kB / 418.3 MB, free: 8.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.3039, allocations: 110.1 kB / 418.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3039, allocations: 0 / 418.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003359/0.3042, allocations: 177.4 kB / 418.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.3043, allocations: 15.94 kB / 418.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3043, allocations: 0 / 418.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3043, allocations: 0 / 418.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.3044, allocations: 31.92 kB / 418.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.3044, allocations: 0 / 418.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.534e-05/0.3045, allocations: 11.95 kB / 418.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.3046, allocations: 8 kB / 418.7 MB, free: 7.867 MB / 334.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.0002102/0.3048, allocations: 179.4 kB / 418.9 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.098e-05/0.3048, allocations: 31.75 kB / 418.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.422e-05/0.3049, allocations: 38.97 kB / 418.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3049, allocations: 0 / 418.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.3049, allocations: 0 / 418.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.305, allocations: 3.984 kB / 418.9 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003375/0.3053, allocations: 313.4 kB / 419.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3053, allocations: 0 / 419.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.992e-05/0.3054, allocations: 8 kB / 419.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3054, allocations: 3.938 kB / 419.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.3054, allocations: 3.984 kB / 419.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3054, allocations: 11.94 kB / 419.3 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3054, allocations: 4 kB / 419.3 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.3058, allocations: 204.8 kB / 419.5 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.3058, allocations: 112.9 kB / 419.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.3059, allocations: 3.938 kB / 419.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.325e-05/0.306, allocations: 15.98 kB / 419.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.991e-05/0.3061, allocations: 15.98 kB / 419.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.3061, allocations: 4 kB / 419.6 MB, free: 6.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003464/0.3064, allocations: 335.1 kB / 419.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3064, allocations: 0 / 419.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002773/0.3067, allocations: 51.94 kB / 420 MB, free: 6.465 MB / 334.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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.001075/0.3078, allocations: 424.2 kB / 420.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003251/0.3081, allocations: 119.9 kB / 420.5 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3082, allocations: 4 kB / 420.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.3083, allocations: 59.91 kB / 420.6 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.3087, allocations: 82.95 kB / 420.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007548/0.3095, allocations: 0.496 MB / 421.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.3098, allocations: 0.7832 MB / 421.9 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.31, allocations: 38.27 kB / 422 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.119e-05/0.31, allocations: 31.42 kB / 422 MB, free: 4.523 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.31, allocations: 0 / 422 MB, free: 4.523 MB / 334.1 MB Notification: Performance of Templates: time 0.008039/0.3181, allocations: 3.911 MB / 425.9 MB, free: 0.6289 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches