Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007733/0.0007734, allocations: 91.52 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002336, allocations: 4 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2375, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.001772/0.2393, allocations: 1.538 MB / 409 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009437/0.2403, allocations: 0.6265 MB / 409.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.2404, allocations: 4 kB / 409.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.2406, allocations: 15.86 kB / 409.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.2407, allocations: 16.48 kB / 409.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.2411, allocations: 87.78 kB / 409.8 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.2412, allocations: 116.5 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.2414, allocations: 52.22 kB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.2415, allocations: 43.8 kB / 410 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.476e-05/0.2416, allocations: 40.97 kB / 410 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.2416, allocations: 7.922 kB / 410 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.2417, allocations: 4 kB / 410 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.658e-05/0.2417, allocations: 19.92 kB / 410.1 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.704e-05/0.2417, allocations: 50.45 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.2419, allocations: 95.8 kB / 410.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2419, allocations: 2.375 kB / 410.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2419, allocations: 0 / 410.2 MB, free: 25.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.2419, allocations: 3.938 kB / 410.2 MB, free: 25.13 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005253/0.2424, allocations: 430.8 kB / 410.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2425, allocations: 8.031 kB / 410.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.2426, allocations: 31.8 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.2429, allocations: 235.6 kB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.2429, allocations: 8.188 kB / 410.9 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.2429, allocations: 19.95 kB / 410.9 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005132/0.2435, allocations: 287.8 kB / 411.2 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2435, allocations: 0 / 411.2 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.2435, allocations: 0 / 411.2 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.2435, allocations: 4 kB / 411.2 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.2437, allocations: 91.83 kB / 411.3 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003823/0.2441, allocations: 435.4 kB / 411.7 MB, free: 23.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003692/0.2445, allocations: 302.1 kB / 412 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.2446, allocations: 124.3 kB / 412.1 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.2447, allocations: 4 kB / 412.1 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.2447, allocations: 46.55 kB / 412.2 MB, free: 22.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.333e-06/0.2447, allocations: 0 / 412.2 MB, free: 22.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005158/0.2452, allocations: 229.5 kB / 412.4 MB, free: 22.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.937e-05/0.2453, allocations: 199.9 kB / 412.6 MB, free: 22.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.2454, allocations: 176.5 kB / 412.8 MB, free: 22.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.2455, allocations: 33.69 kB / 412.8 MB, free: 22.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.817e-05/0.2455, allocations: 100 kB / 412.9 MB, free: 22.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.2455, allocations: 12.08 kB / 412.9 MB, free: 22.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.2455, allocations: 8 kB / 412.9 MB, free: 22.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.027e-05/0.2456, allocations: 326.8 kB / 413.3 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.39e-05/0.2457, allocations: 27.89 kB / 413.3 MB, free: 21.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.827e-05/0.2458, allocations: 130.5 kB / 413.4 MB, free: 21.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.896e-05/0.2459, allocations: 47.95 kB / 413.5 MB, free: 21.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2459, allocations: 0 / 413.5 MB, free: 21.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002171/0.2461, allocations: 169.2 kB / 413.6 MB, free: 21.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2461, allocations: 4.5 kB / 413.6 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2462, allocations: 7.938 kB / 413.6 MB, free: 21.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2462, allocations: 12 kB / 413.6 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.2463, allocations: 27.98 kB / 413.7 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.2463, allocations: 11.92 kB / 413.7 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.802e-05/0.2464, allocations: 15.94 kB / 413.7 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.2464, allocations: 12 kB / 413.7 MB, free: 21.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 8.263e-05/0.2465, allocations: 133.7 kB / 413.8 MB, free: 21.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002409/0.2468, allocations: 153.6 kB / 414 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.2468, allocations: 25.39 kB / 414 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2468, allocations: 0 / 414 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.2468, allocations: 4 kB / 414 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2468, allocations: 0 / 414 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.247, allocations: 221.4 kB / 414.2 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2471, allocations: 0 / 414.2 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.2472, allocations: 51.94 kB / 414.3 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2472, allocations: 480 / 414.3 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.2472, allocations: 4 kB / 414.3 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2472, allocations: 0 / 414.3 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2472, allocations: 4 kB / 414.3 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.2475, allocations: 372.9 kB / 414.7 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.038e-05/0.2476, allocations: 112.8 kB / 414.8 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.2476, allocations: 8 kB / 414.8 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.2478, allocations: 15.98 kB / 414.8 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.2478, allocations: 4 kB / 414.8 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.2478, allocations: 4 kB / 414.8 MB, free: 20.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.104e-05/0.2479, allocations: 132.1 kB / 414.9 MB, free: 19.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2479, allocations: 0 / 414.9 MB, free: 19.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002774/0.2482, allocations: 23.94 kB / 415 MB, free: 19.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 9.876e-05/0.2483, allocations: 114.8 kB / 415.1 MB, free: 19.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002457/0.2486, allocations: 116.6 kB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2486, allocations: 4.125 kB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.03e-05/0.2486, allocations: 15.94 kB / 415.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006086/0.2492, allocations: 100.1 kB / 415.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007487/0.25, allocations: 453.4 kB / 415.7 MB, free: 19.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.2502, allocations: 0.728 MB / 416.5 MB, free: 18.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.834e-05/0.2502, allocations: 19.42 kB / 416.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2502, allocations: 0 / 416.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of Templates: time 0.002675/0.2529, allocations: 1.742 MB / 418.2 MB, free: 16.54 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches