Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 191.2 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 226.6 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008076/0.0008075, allocations: 92.59 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002188/0.0002189, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.198, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001676/0.1997, allocations: 1.532 MB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.201, allocations: 1.095 MB / 410.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.597e-05/0.2011, allocations: 0 / 410.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005031/0.2016, allocations: 160.7 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002654/0.2019, allocations: 129.8 kB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.2023, allocations: 149.1 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.2024, allocations: 191.4 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.628e-05/0.2025, allocations: 22.17 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.027e-05/0.2026, allocations: 80.66 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.2028, allocations: 83.66 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.2028, allocations: 10.75 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.2029, allocations: 35.98 kB / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.615e-05/0.203, allocations: 39.84 kB / 411.5 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.204e-05/0.203, allocations: 97.28 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.2032, allocations: 164.6 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2032, allocations: 4 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2032, allocations: 0 / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2032, allocations: 0 / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006533/0.2039, allocations: 0.5023 MB / 412.3 MB, free: 23.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.2039, allocations: 16.03 kB / 412.3 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.204, allocations: 20.69 kB / 412.3 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.2042, allocations: 262.8 kB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.2043, allocations: 4.375 kB / 412.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.2043, allocations: 12.12 kB / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.2045, allocations: 121.4 kB / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.2045, allocations: 0 / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.2045, allocations: 4 kB / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2045, allocations: 4 kB / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.2047, allocations: 51.91 kB / 412.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004738/0.2052, allocations: 0.6027 MB / 413.4 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.2054, allocations: 131.8 kB / 413.5 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.769e-05/0.2055, allocations: 50.56 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.2055, allocations: 4 kB / 413.6 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.2057, allocations: 129.8 kB / 413.7 MB, free: 21.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.2057, allocations: 0 / 413.7 MB, free: 21.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003707/0.2061, allocations: 173.4 kB / 413.9 MB, free: 21.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.2061, allocations: 132.5 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.2064, allocations: 304.8 kB / 414.3 MB, free: 21.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.2064, allocations: 29.7 kB / 414.3 MB, free: 21.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.413e-05/0.2065, allocations: 128.5 kB / 414.5 MB, free: 20.99 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.2065, allocations: 27.77 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/0.2065, allocations: 4 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/0.2066, allocations: 330.8 kB / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.161e-05/0.2066, allocations: 35.98 kB / 414.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.527e-05/0.2068, allocations: 86.77 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.2069, allocations: 100.7 kB / 415 MB, free: 20.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2069, allocations: 0 / 415 MB, free: 20.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002246/0.2071, allocations: 153.3 kB / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.2072, allocations: 4 kB / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.2072, allocations: 4 kB / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.2072, allocations: 0 / 415.2 MB, free: 20.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.604e-05/0.2073, allocations: 15.98 kB / 415.2 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.2073, allocations: 7.938 kB / 415.2 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.2074, allocations: 15.92 kB / 415.2 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.2074, allocations: 12.09 kB / 415.2 MB, free: 20.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 9.272e-05/0.2075, allocations: 141.8 kB / 415.4 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.675e-05/0.2076, allocations: 23.72 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.2076, allocations: 25.7 kB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2076, allocations: 0 / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.2076, allocations: 0 / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2076, allocations: 7.938 kB / 415.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.2078, allocations: 241.5 kB / 415.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2078, allocations: 4 kB / 415.7 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.677e-05/0.2079, allocations: 11.94 kB / 415.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2079, allocations: 0 / 415.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.2079, allocations: 4.125 kB / 415.7 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.2079, allocations: 4 kB / 415.7 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2079, allocations: 3.984 kB / 415.7 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.2081, allocations: 188.7 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/0.2082, allocations: 96.83 kB / 416 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.2082, allocations: 7.984 kB / 416 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.2083, allocations: 15.98 kB / 416 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.2084, allocations: 23.8 kB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.2084, allocations: 4 kB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001631/0.2086, allocations: 224.4 kB / 416.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2086, allocations: 4 kB / 416.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002421/0.2088, allocations: 36 kB / 416.3 MB, free: 19.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007966/0.2097, allocations: 406.4 kB / 416.7 MB, free: 18.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.2099, allocations: 95.83 kB / 416.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2099, allocations: 192 / 416.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.21, allocations: 59.92 kB / 416.8 MB, free: 18.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.2103, allocations: 48.27 kB / 416.9 MB, free: 18.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.2108, allocations: 402 kB / 417.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.211, allocations: 0.7361 MB / 418 MB, free: 17.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.073e-05/0.2111, allocations: 27.42 kB / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2111, allocations: 0 / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of Templates: time 0.003744/0.2148, allocations: 2.899 MB / 420.9 MB, free: 14.45 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches