Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002658/0.002658, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.674/1.674, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000809/0.0008091, allocations: 98.09 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 4 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2216, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.001695/0.2233, allocations: 1.542 MB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000922/0.2242, allocations: 0.6064 MB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2244, allocations: 7.938 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.2246, allocations: 13.64 kB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.2247, allocations: 23.84 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.225, allocations: 79.72 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.2252, allocations: 131.5 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.2253, allocations: 61.89 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.2254, allocations: 47.78 kB / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.938e-05/0.2255, allocations: 41.44 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.856e-05/0.2255, allocations: 4 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.027e-05/0.2256, allocations: 4 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.778e-05/0.2256, allocations: 23.91 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.524e-05/0.2257, allocations: 77.31 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.2258, allocations: 96.52 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2258, allocations: 0 / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2258, allocations: 1.25 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2258, allocations: 0 / 410.8 MB, free: 24.95 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.0004648/0.2263, allocations: 433.9 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.2263, allocations: 8.031 kB / 411.2 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.2265, allocations: 29.42 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.2267, allocations: 242.6 kB / 411.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.2267, allocations: 12.12 kB / 411.5 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.2268, allocations: 12 kB / 411.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004858/0.2272, allocations: 292.1 kB / 411.8 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2273, allocations: 7.938 kB / 411.8 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.2273, allocations: 4 kB / 411.8 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.2273, allocations: 4 kB / 411.8 MB, free: 23.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.2275, allocations: 83.88 kB / 411.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.2279, allocations: 427.5 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.2283, allocations: 306 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.2284, allocations: 124.4 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.2285, allocations: 11.92 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.2285, allocations: 42.56 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.462e-06/0.2285, allocations: 0 / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004797/0.229, allocations: 237.5 kB / 413 MB, free: 22.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.229, allocations: 195.9 kB / 413.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.2292, allocations: 183.6 kB / 413.4 MB, free: 22.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.2292, allocations: 33.64 kB / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.106e-05/0.2292, allocations: 104.5 kB / 413.5 MB, free: 21.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.2293, allocations: 19.98 kB / 413.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-06/0.2293, allocations: 0 / 413.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.795e-05/0.2293, allocations: 326.8 kB / 413.9 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.1e-05/0.2294, allocations: 23.98 kB / 413.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.915e-05/0.2295, allocations: 139.4 kB / 414 MB, free: 21.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.2297, allocations: 178.4 kB / 414.2 MB, free: 21.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2297, allocations: 8 kB / 414.2 MB, free: 21.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002378/0.2299, allocations: 177.6 kB / 414.4 MB, free: 20.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.2299, allocations: 4 kB / 414.4 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2299, allocations: 7.984 kB / 414.4 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.23, allocations: 4 kB / 414.4 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.2301, allocations: 43.92 kB / 414.4 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.2301, allocations: 4 kB / 414.4 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.412e-05/0.2302, allocations: 23.78 kB / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.2302, allocations: 8 kB / 414.5 MB, free: 20.81 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.509e-05/0.2303, allocations: 141.8 kB / 414.6 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.2306, allocations: 152.3 kB / 414.8 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.2306, allocations: 25.39 kB / 414.8 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.2306, allocations: 4 kB / 414.8 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2306, allocations: 0 / 414.8 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2306, allocations: 7.938 kB / 414.8 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.2309, allocations: 221.5 kB / 415 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2309, allocations: 4 kB / 415 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.231, allocations: 43.91 kB / 415.1 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.231, allocations: 0 / 415.1 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.231, allocations: 8 kB / 415.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.231, allocations: 0 / 415.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.231, allocations: 4 kB / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.2314, allocations: 375.7 kB / 415.4 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.503e-05/0.2314, allocations: 112.8 kB / 415.5 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.2315, allocations: 3.984 kB / 415.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/0.2316, allocations: 16 kB / 415.6 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.701e-05/0.2317, allocations: 7.922 kB / 415.6 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.2317, allocations: 8 kB / 415.6 MB, free: 19.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.26e-05/0.2318, allocations: 129.2 kB / 415.7 MB, free: 19.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2318, allocations: 0 / 415.7 MB, free: 19.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.2321, allocations: 31.89 kB / 415.7 MB, free: 19.43 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: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.417e-05/0.2322, allocations: 107.2 kB / 415.8 MB, free: 19.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002561/0.2325, allocations: 120.6 kB / 416 MB, free: 19.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2325, allocations: 0 / 416 MB, free: 19.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.2325, allocations: 15.92 kB / 416 MB, free: 19.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006133/0.2331, allocations: 111.5 kB / 416.1 MB, free: 19.08 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004905/0.2337, allocations: 403.3 kB / 416.5 MB, free: 18.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.2338, allocations: 0.7241 MB / 417.2 MB, free: 17.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.2339, allocations: 15.44 kB / 417.2 MB, free: 17.88 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2339, allocations: 4 kB / 417.2 MB, free: 17.88 MB / 298.7 MB Notification: Performance of Templates: time 0.002942/0.2368, allocations: 1.805 MB / 419 MB, free: 16.09 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches