Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007972/0.0007972, allocations: 175.6 kB / 16.77 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.173/1.173, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007026/0.0007025, allocations: 100.9 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06047/0.06047, allocations: 12.19 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003671, allocations: 20 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0692/0.06958, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.001558/0.07118, allocations: 1.508 MB / 444 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008781/0.07208, allocations: 0.6481 MB / 444.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.07225, allocations: 7.938 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.07237, allocations: 15.86 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.07249, allocations: 15.86 kB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.07278, allocations: 83.84 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.07294, allocations: 139.5 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.07307, allocations: 53.7 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.07319, allocations: 47.77 kB / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.156e-05/0.07327, allocations: 39.73 kB / 445.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.0733, allocations: 7.938 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.648e-05/0.07332, allocations: 8 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.864e-05/0.07336, allocations: 15.92 kB / 445.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.668e-05/0.07342, allocations: 81.3 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.042e-05/0.07351, allocations: 92.03 kB / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.07352, allocations: 0 / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.07353, allocations: 0 / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.07354, allocations: 0 / 445.3 MB, free: 13.77 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.0004333/0.07398, allocations: 427.1 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.07402, allocations: 12.03 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.07406, allocations: 42.73 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.0741, allocations: 20.66 kB / 445.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.07431, allocations: 244.8 kB / 446 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.07433, allocations: 11.94 kB / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.07435, allocations: 4 kB / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.07485, allocations: 319.9 kB / 446.3 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.07487, allocations: 0 / 446.3 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.07489, allocations: 4 kB / 446.3 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.0749, allocations: 4 kB / 446.3 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.0751, allocations: 87.89 kB / 446.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.07544, allocations: 427.3 kB / 446.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.07581, allocations: 310.1 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.07597, allocations: 116.4 kB / 447.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.076, allocations: 11.97 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.07602, allocations: 38.5 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/0.07603, allocations: 0 / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004657/0.0765, allocations: 237.2 kB / 447.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.07657, allocations: 196.3 kB / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.07668, allocations: 182.9 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.0767, allocations: 25.7 kB / 447.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.647e-05/0.07675, allocations: 104.5 kB / 448 MB, free: 10.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.07677, allocations: 15.84 kB / 448 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.07678, allocations: 3.938 kB / 448 MB, free: 10.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.618e-05/0.07683, allocations: 330.8 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.813e-05/0.07689, allocations: 31.98 kB / 448.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.677e-05/0.07699, allocations: 155.2 kB / 448.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.07714, allocations: 170.4 kB / 448.7 MB, free: 9.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.07715, allocations: 0 / 448.7 MB, free: 9.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002268/0.07738, allocations: 177.2 kB / 448.9 MB, free: 9.664 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.0774, allocations: 8 kB / 448.9 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.07741, allocations: 4 kB / 448.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.07743, allocations: 4.531 kB / 448.9 MB, free: 9.648 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.07755, allocations: 39.92 kB / 448.9 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.07756, allocations: 19.86 kB / 449 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.101e-05/0.07766, allocations: 15.91 kB / 449 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.07768, allocations: 8 kB / 449 MB, free: 9.566 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 (hold.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 7.753e-05/0.07776, allocations: 146.4 kB / 449.1 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/0.078, allocations: 145.4 kB / 449.3 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.07805, allocations: 29.39 kB / 449.3 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.07806, allocations: 4 kB / 449.3 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.07807, allocations: 7.938 kB / 449.3 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.07807, allocations: 0 / 449.3 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.07827, allocations: 213.5 kB / 449.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.07828, allocations: 0 / 449.5 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.07841, allocations: 39.97 kB / 449.6 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.07842, allocations: 8.031 kB / 449.6 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.07843, allocations: 7.938 kB / 449.6 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.07844, allocations: 7.938 kB / 449.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.07845, allocations: 7.922 kB / 449.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003014/0.07875, allocations: 371.5 kB / 449.9 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.502e-05/0.07882, allocations: 108.9 kB / 450.1 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.07885, allocations: 4 kB / 450.1 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.07899, allocations: 19.98 kB / 450.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.972e-05/0.07902, allocations: 11.88 kB / 450.1 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.07904, allocations: 4 kB / 450.1 MB, free: 8.344 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.934e-05/0.07911, allocations: 137.1 kB / 450.2 MB, free: 8.211 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07912, allocations: 0 / 450.2 MB, free: 8.211 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002921/0.07942, allocations: 24 kB / 450.2 MB, free: 8.188 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 (hold.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.0005792/0.08, allocations: 0.9603 MB / 451.2 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000229/0.08024, allocations: 127.9 kB / 451.3 MB, free: 7.066 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.08025, allocations: 0 / 451.3 MB, free: 7.066 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.941e-05/0.0803, allocations: 15.98 kB / 451.3 MB, free: 7.051 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.08089, allocations: 125.7 kB / 451.5 MB, free: 6.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.08204, allocations: 0.9805 MB / 452.5 MB, free: 5.836 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.08219, allocations: 0.7357 MB / 453.2 MB, free: 5.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.578e-05/0.08227, allocations: 39.42 kB / 453.2 MB, free: 5.035 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.08227, allocations: 0 / 453.2 MB, free: 5.035 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.41/2.493, allocations: 2.099 MB / 455.3 MB, free: 2.93 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.bits,hold.compDelay.resolution,hold.compDelay.shiftCounter,hold.compDelay.u,hold.compDelay.ubuf,hold.compDelay.y,hold.computationalDelay,hold.hold1.u,hold.hold1.y,hold.hold1.y_start,hold.limited,hold.limiter.u,hold.limiter.uMax,hold.limiter.uMin,hold.limiter.y,hold.quantized,hold.resolution,hold.shiftCounter,hold.u,hold.uFeedthrough3,hold.y,hold.y2,hold.y3,hold.y4,hold.y5,hold.yMax,hold.yMin,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(hold.compDelay.ubuf),sample.u,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.u,shiftSample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time