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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 226.5 MB / 244.7 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007901/0.0007901, allocations: 91.5 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.0002502, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2651, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.002111/0.2673, allocations: 1.542 MB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.2684, allocations: 0.6071 MB / 410.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.2686, allocations: 7.875 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.2688, allocations: 19.86 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.2689, allocations: 17.08 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.2693, allocations: 83.59 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.2695, allocations: 127.6 kB / 410.5 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.2697, allocations: 66.09 kB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.2699, allocations: 43.78 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.759e-05/0.27, allocations: 43.72 kB / 410.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.27, allocations: 5.094 kB / 410.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.82e-05/0.2701, allocations: 4 kB / 410.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.758e-05/0.2701, allocations: 19.92 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.94e-05/0.2702, allocations: 73.97 kB / 410.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.2704, allocations: 107.7 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.2704, allocations: 0.6875 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2704, allocations: 0 / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.2704, allocations: 0.875 kB / 410.9 MB, free: 24.9 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.0006092/0.271, allocations: 426.8 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.2711, allocations: 12.03 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.598e-05/0.2711, allocations: 38.73 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.2713, allocations: 40.58 kB / 411.4 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.2715, allocations: 233.8 kB / 411.6 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.2716, allocations: 11.94 kB / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.2716, allocations: 8 kB / 411.6 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005794/0.2722, allocations: 298.8 kB / 411.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.2722, allocations: 0 / 411.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.2722, allocations: 0 / 411.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2722, allocations: 8 kB / 411.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.2724, allocations: 91.83 kB / 412 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004242/0.2729, allocations: 431.4 kB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000438/0.2733, allocations: 298.1 kB / 412.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.2735, allocations: 120.2 kB / 412.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.2736, allocations: 8 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.2736, allocations: 46.44 kB / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.694e-06/0.2736, allocations: 0 / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005275/0.2741, allocations: 229.8 kB / 413.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.2742, allocations: 199.8 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.2744, allocations: 179.7 kB / 413.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.2744, allocations: 29.7 kB / 413.5 MB, free: 21.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.2745, allocations: 104.1 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.2745, allocations: 19.98 kB / 413.7 MB, free: 21.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.2745, allocations: 0 / 413.7 MB, free: 21.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.41e-05/0.2746, allocations: 326.8 kB / 414 MB, free: 21.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.958e-05/0.2747, allocations: 23.98 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.2748, allocations: 130.5 kB / 414.1 MB, free: 21.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.2749, allocations: 161.6 kB / 414.3 MB, free: 21.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.275, allocations: 0 / 414.3 MB, free: 21.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002313/0.2752, allocations: 169.1 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.2752, allocations: 7.938 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.2752, allocations: 4.5 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.2753, allocations: 8 kB / 414.5 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.2754, allocations: 39.92 kB / 414.5 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.2754, allocations: 7.938 kB / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.039e-05/0.2755, allocations: 19.83 kB / 414.5 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.2755, allocations: 8 kB / 414.5 MB, free: 20.79 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 0.0001001/0.2756, allocations: 133.8 kB / 414.7 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002476/0.2759, allocations: 153.7 kB / 414.8 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.033e-05/0.2759, allocations: 21.41 kB / 414.8 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.2759, allocations: 4 kB / 414.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.276, allocations: 4.094 kB / 414.9 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.276, allocations: 7.922 kB / 414.9 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.2762, allocations: 213.5 kB / 415.1 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2762, allocations: 0 / 415.1 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.2763, allocations: 47.94 kB / 415.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2763, allocations: 3.938 kB / 415.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.2764, allocations: 8 kB / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.2764, allocations: 0 / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2764, allocations: 4 kB / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.2767, allocations: 375.7 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.2768, allocations: 108.8 kB / 415.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.2768, allocations: 11.98 kB / 415.6 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.277, allocations: 12 kB / 415.6 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.277, allocations: 11.98 kB / 415.6 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.277, allocations: 4 kB / 415.6 MB, free: 19.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.997e-05/0.2771, allocations: 129.2 kB / 415.8 MB, free: 19.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2771, allocations: 3.938 kB / 415.8 MB, free: 19.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003041/0.2774, allocations: 20 kB / 415.8 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: 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 0.0005384/0.278, allocations: 0.9053 MB / 416.7 MB, free: 18.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000265/0.2783, allocations: 116.3 kB / 416.8 MB, free: 18.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2783, allocations: 0 / 416.8 MB, free: 18.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.454e-05/0.2783, allocations: 23.92 kB / 416.8 MB, free: 18.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006578/0.279, allocations: 96.59 kB / 416.9 MB, free: 18.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.2805, allocations: 1.013 MB / 417.9 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.2807, allocations: 0.7163 MB / 418.7 MB, free: 16.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/0.2808, allocations: 39.42 kB / 418.7 MB, free: 16.35 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2808, allocations: 192 / 418.7 MB, free: 16.35 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.622/2.903, allocations: 2.037 MB / 420.7 MB, free: 14.32 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1.fmu > 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/jenkins1/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) "" 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,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