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.001617/0.001617, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002131/0.002131, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2624, allocations: 50.54 MB / 409.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003049/0.2655, allocations: 2.023 MB / 411.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.2674, allocations: 1.282 MB / 413.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2675, allocations: 7.938 kB / 413.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007763/0.2683, allocations: 298.7 kB / 413.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004986/0.2688, allocations: 259.1 kB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004702/0.2693, allocations: 219.5 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.2697, allocations: 375.1 kB / 414.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.2698, allocations: 60.7 kB / 414.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.27, allocations: 151.4 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.2702, allocations: 147.4 kB / 414.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.2702, allocations: 24 kB / 414.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.2704, allocations: 83.89 kB / 414.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.643e-05/0.2705, allocations: 83.73 kB / 414.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.2707, allocations: 135.1 kB / 415 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.271, allocations: 359.9 kB / 415.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.271, allocations: 0 / 415.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2711, allocations: 0 / 415.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2711, allocations: 0 / 415.4 MB, free: 12.07 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.0009243/0.272, allocations: 0.6766 MB / 416.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.272, allocations: 12.03 kB / 416.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.262e-05/0.2721, allocations: 32.56 kB / 416.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000401/0.2725, allocations: 342.3 kB / 416.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.2725, allocations: 12.38 kB / 416.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.2726, allocations: 12.12 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.2729, allocations: 148 kB / 416.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2729, allocations: 4 kB / 416.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.2729, allocations: 4 kB / 416.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.2729, allocations: 0 / 416.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.2731, allocations: 67.97 kB / 416.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006165/0.2737, allocations: 496.3 kB / 417.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.274, allocations: 138.3 kB / 417.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.2741, allocations: 52.83 kB / 417.3 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.2742, allocations: 4 kB / 417.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.2744, allocations: 111.3 kB / 417.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.572e-06/0.2744, allocations: 3.938 kB / 417.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004808/0.2749, allocations: 224.1 kB / 417.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.275, allocations: 102.8 kB / 417.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.2754, allocations: 457.6 kB / 418.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.2755, allocations: 33.7 kB / 418.3 MB, free: 8.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.2756, allocations: 164 kB / 418.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.2756, allocations: 43.45 kB / 418.5 MB, free: 8.742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.916e-05/0.2757, allocations: 41.7 kB / 418.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.2758, allocations: 358.7 kB / 418.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.2759, allocations: 35.98 kB / 418.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.2761, allocations: 112.1 kB / 419 MB, free: 8.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.2763, allocations: 110.5 kB / 419.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2763, allocations: 0 / 419.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003028/0.2766, allocations: 169.2 kB / 419.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2766, allocations: 15.06 kB / 419.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2767, allocations: 0 / 419.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.2767, allocations: 0 / 419.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.2768, allocations: 31.92 kB / 419.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.2768, allocations: 0 / 419.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.953e-05/0.2769, allocations: 23.89 kB / 419.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.2769, allocations: 8 kB / 419.3 MB, free: 7.809 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.0001586/0.2771, allocations: 175.5 kB / 419.5 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.2771, allocations: 31.56 kB / 419.6 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.525e-05/0.2772, allocations: 42.95 kB / 419.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.2772, allocations: 0 / 419.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2772, allocations: 0 / 419.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2772, allocations: 0 / 419.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.2775, allocations: 309.4 kB / 419.9 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2775, allocations: 0 / 419.9 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.087e-05/0.2776, allocations: 15.98 kB / 419.9 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2776, allocations: 3.938 kB / 419.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.2776, allocations: 0 / 419.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2776, allocations: 0 / 419.9 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2776, allocations: 4 kB / 419.9 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000333/0.2779, allocations: 211.7 kB / 420.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.395e-05/0.278, allocations: 112.7 kB / 420.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.2781, allocations: 3.938 kB / 420.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.63e-05/0.2782, allocations: 12 kB / 420.3 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.672e-05/0.2782, allocations: 11.97 kB / 420.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.2783, allocations: 8 kB / 420.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003429/0.2786, allocations: 331.1 kB / 420.6 MB, free: 6.477 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2786, allocations: 0 / 420.6 MB, free: 6.477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002747/0.2789, allocations: 55.91 kB / 420.6 MB, free: 6.422 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.0009357/0.2798, allocations: 422.8 kB / 421.1 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002956/0.2801, allocations: 123.8 kB / 421.2 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2801, allocations: 0 / 421.2 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.2803, allocations: 59.92 kB / 421.2 MB, free: 5.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004066/0.2807, allocations: 78.09 kB / 421.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007797/0.2815, allocations: 0.5296 MB / 421.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.2818, allocations: 0.7714 MB / 422.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/0.2819, allocations: 27.44 kB / 422.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2819, allocations: 4 kB / 422.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of Templates: time 0.006144/0.2881, allocations: 4.32 MB / 427 MB, free: 184 kB / 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches