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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001474/0.001474, allocations: 191.8 kB / 17.37 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009098/0.0009099, allocations: 95.92 kB / 296.7 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002275/0.0002277, allocations: 4 kB / 356.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2283, allocations: 51.3 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002029/0.2303, allocations: 1.542 MB / 409.7 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009941/0.2314, allocations: 0.6049 MB / 410.3 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.2315, allocations: 7.938 kB / 410.3 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.2317, allocations: 16.36 kB / 410.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.2318, allocations: 17.95 kB / 410.3 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.2322, allocations: 75.84 kB / 410.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.2323, allocations: 131.6 kB / 410.5 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.2325, allocations: 60.45 kB / 410.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.2327, allocations: 52.45 kB / 410.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.345e-05/0.2328, allocations: 36.3 kB / 410.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.918e-05/0.2328, allocations: 0 / 410.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.307e-05/0.2329, allocations: 12.59 kB / 410.7 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.357e-05/0.2329, allocations: 19.91 kB / 410.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.527e-05/0.233, allocations: 74 kB / 410.8 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.2331, allocations: 104.3 kB / 410.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.2331, allocations: 0 / 410.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.2332, allocations: 3.938 kB / 410.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.2332, allocations: 3.938 kB / 410.9 MB, free: 24.97 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.0005684/0.2337, allocations: 432.3 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.2338, allocations: 8.031 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.956e-05/0.2338, allocations: 42.73 kB / 411.4 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.234, allocations: 33.36 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.2343, allocations: 234.8 kB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.2343, allocations: 7.938 kB / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.2343, allocations: 8 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000558/0.2349, allocations: 307.6 kB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2349, allocations: 0 / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.2349, allocations: 0 / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2349, allocations: 4 kB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.2351, allocations: 87.88 kB / 412 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004141/0.2356, allocations: 431.4 kB / 412.4 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003948/0.236, allocations: 314 kB / 412.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.2362, allocations: 120.3 kB / 412.9 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.2362, allocations: 4 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.2362, allocations: 38.56 kB / 412.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.313e-06/0.2362, allocations: 4 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005377/0.2368, allocations: 229.6 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.2369, allocations: 203.8 kB / 413.3 MB, free: 22.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.237, allocations: 179.6 kB / 413.5 MB, free: 22.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.237, allocations: 29.7 kB / 413.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.2371, allocations: 100.5 kB / 413.6 MB, free: 21.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.2371, allocations: 15.89 kB / 413.7 MB, free: 21.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.2371, allocations: 8.094 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.537e-05/0.2372, allocations: 326.8 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.987e-05/0.2373, allocations: 23.98 kB / 414 MB, free: 21.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.509e-05/0.2374, allocations: 139.4 kB / 414.1 MB, free: 21.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.2375, allocations: 174.4 kB / 414.3 MB, free: 21.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2375, allocations: 0 / 414.3 MB, free: 21.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002416/0.2378, allocations: 185.6 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.2378, allocations: 7.938 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2378, allocations: 8.031 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.2379, allocations: 8 kB / 414.5 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.238, allocations: 43.91 kB / 414.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.238, allocations: 15.86 kB / 414.6 MB, free: 20.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.434e-05/0.2381, allocations: 15.84 kB / 414.6 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.2381, allocations: 16 kB / 414.6 MB, free: 20.78 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 9.971e-05/0.2382, allocations: 129.8 kB / 414.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/0.2385, allocations: 158 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.658e-05/0.2385, allocations: 21.39 kB / 414.9 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.2386, allocations: 7.938 kB / 414.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.2386, allocations: 3.938 kB / 414.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2386, allocations: 4 kB / 414.9 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.2388, allocations: 225.4 kB / 415.1 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2388, allocations: 4.031 kB / 415.1 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.2389, allocations: 35.98 kB / 415.2 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2389, allocations: 0 / 415.2 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.239, allocations: 11.98 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.239, allocations: 0 / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.239, allocations: 11.88 kB / 415.2 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.2393, allocations: 361.2 kB / 415.6 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.903e-05/0.2394, allocations: 116.8 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.2394, allocations: 4 kB / 415.7 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.2396, allocations: 15.98 kB / 415.7 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.2396, allocations: 7.938 kB / 415.7 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.2396, allocations: 11.98 kB / 415.7 MB, free: 19.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.683e-05/0.2397, allocations: 129.2 kB / 415.8 MB, free: 19.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2397, allocations: 0 / 415.8 MB, free: 19.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002981/0.24, allocations: 23.91 kB / 415.9 MB, free: 19.41 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 0.0006907/0.2407, allocations: 0.985 MB / 416.8 MB, free: 18.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002582/0.241, allocations: 123.8 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.241, allocations: 3.938 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.309e-05/0.2411, allocations: 17.05 kB / 417 MB, free: 18.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006509/0.2417, allocations: 111.4 kB / 417.1 MB, free: 18.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.243, allocations: 0.9926 MB / 418.1 MB, free: 17.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/0.2432, allocations: 0.7202 MB / 418.8 MB, free: 16.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.939e-05/0.2433, allocations: 47.41 kB / 418.9 MB, free: 16.24 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2433, allocations: 0 / 418.9 MB, free: 16.24 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.672/2.915, allocations: 2.088 MB / 420.9 MB, free: 14.15 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > 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/jenkins1/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) "" Variables in the reference:time,sample1.y,hold1.y,// shiftSample1.y Variables in the result:hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.compDelay.u,hold1.compDelay.ubuf,hold1.compDelay.y,hold1.computationalDelay,hold1.hold1.u,hold1.hold1.y,hold1.hold1.y_start,hold1.limited,hold1.limiter.u,hold1.limiter.uMax,hold1.limiter.uMin,hold1.limiter.y,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.u,hold1.uFeedthrough3,hold1.y,hold1.y2,hold1.y3,hold1.y4,hold1.y5,hold1.yMax,hold1.yMin,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(hold1.compDelay.ubuf),sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time