Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1",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.0008645/0.0008645, allocations: 177.7 kB / 16.77 MB, free: 4.898 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.22/1.22, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007024/0.0007024, allocations: 86.34 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05635/0.05635, allocations: 12.2 MB / 331.8 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003844/0.0003845, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06077/0.06117, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.001369/0.06257, allocations: 1.52 MB / 444 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000763/0.06335, allocations: 0.6403 MB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.107e-05/0.06346, allocations: 3.938 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.06357, allocations: 15.86 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.818e-05/0.06366, allocations: 23.84 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.06391, allocations: 87.83 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.06404, allocations: 139.5 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.06416, allocations: 57.7 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.169e-05/0.06426, allocations: 43.78 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.01e-05/0.06433, allocations: 43.72 kB / 445.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.06435, allocations: 0 / 445.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.418e-05/0.06437, allocations: 4 kB / 445.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.348e-05/0.06441, allocations: 23.91 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.799e-05/0.06446, allocations: 69.33 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.336e-05/0.06454, allocations: 92.03 kB / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.06455, allocations: 0 / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.06456, allocations: 0 / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.06457, allocations: 4 kB / 445.2 MB, free: 13.78 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.0003747/0.06495, allocations: 435.1 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.06498, allocations: 8.031 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.06502, allocations: 42.75 kB / 445.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.003e-05/0.06506, allocations: 20.66 kB / 445.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001802/0.06524, allocations: 240.8 kB / 446 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.06526, allocations: 7.938 kB / 446 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.06528, allocations: 12 kB / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/0.06574, allocations: 311.9 kB / 446.3 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.06576, allocations: 0 / 446.3 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.06578, allocations: 4 kB / 446.3 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.06579, allocations: 0 / 446.3 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.06598, allocations: 91.88 kB / 446.4 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002922/0.06627, allocations: 435.3 kB / 446.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.06662, allocations: 302.1 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.06678, allocations: 120.3 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.0668, allocations: 0 / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.271e-05/0.06682, allocations: 42.5 kB / 447.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 9.91e-07/0.06683, allocations: 3.938 kB / 447.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004456/0.06728, allocations: 237.5 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.06733, allocations: 187.9 kB / 447.7 MB, free: 11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.06744, allocations: 182.9 kB / 447.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.06746, allocations: 29.7 kB / 447.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.0675, allocations: 104.1 kB / 448 MB, free: 10.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.456e-05/0.06752, allocations: 19.92 kB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.06753, allocations: 4 kB / 448 MB, free: 10.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.475e-05/0.06757, allocations: 322.8 kB / 448.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.424e-05/0.06763, allocations: 27.98 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.934e-05/0.06771, allocations: 135.8 kB / 448.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.06785, allocations: 157.6 kB / 448.7 MB, free: 9.914 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.06786, allocations: 4 kB / 448.7 MB, free: 9.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002018/0.06807, allocations: 169.1 kB / 448.8 MB, free: 9.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.06809, allocations: 8.5 kB / 448.8 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.0681, allocations: 4 kB / 448.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.06811, allocations: 11.94 kB / 448.8 MB, free: 9.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.877e-05/0.06822, allocations: 35.92 kB / 448.9 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.06824, allocations: 11.94 kB / 448.9 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.554e-05/0.06833, allocations: 15.89 kB / 448.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.06835, allocations: 8 kB / 448.9 MB, free: 9.645 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 6.637e-05/0.06842, allocations: 138.4 kB / 449.1 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.06865, allocations: 153.4 kB / 449.2 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.412e-05/0.06869, allocations: 21.41 kB / 449.2 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.0687, allocations: 4 kB / 449.2 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.06871, allocations: 4.406 kB / 449.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.06872, allocations: 3.984 kB / 449.2 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.0689, allocations: 209.6 kB / 449.4 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.06891, allocations: 0 / 449.4 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.06903, allocations: 47.94 kB / 449.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.06904, allocations: 3.938 kB / 449.5 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.06905, allocations: 8 kB / 449.5 MB, free: 8.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.06906, allocations: 4 kB / 449.5 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.06907, allocations: 3.938 kB / 449.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002781/0.06935, allocations: 370.7 kB / 449.9 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.06941, allocations: 104.8 kB / 450 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.025e-05/0.06943, allocations: 15.98 kB / 450 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.06957, allocations: 12 kB / 450 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.0696, allocations: 15.92 kB / 450 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.06962, allocations: 4 kB / 450 MB, free: 8.434 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.178e-05/0.06968, allocations: 133.2 kB / 450.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.06969, allocations: 0 / 450.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002775/0.06997, allocations: 23.98 kB / 450.2 MB, free: 8.281 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.0003914/0.07037, allocations: 0.8966 MB / 451.1 MB, free: 7.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002064/0.07058, allocations: 120.2 kB / 451.2 MB, free: 7.234 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.07059, allocations: 0 / 451.2 MB, free: 7.234 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.93e-05/0.07064, allocations: 19.92 kB / 451.2 MB, free: 7.215 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/0.07119, allocations: 112.4 kB / 451.3 MB, free: 7.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.07243, allocations: 1.011 MB / 452.3 MB, free: 5.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.07254, allocations: 0.7163 MB / 453 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.245e-05/0.0726, allocations: 43.89 kB / 453.1 MB, free: 5.195 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.07261, allocations: 4 kB / 453.1 MB, free: 5.191 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.503/2.576, allocations: 2.021 MB / 455.1 MB, free: 3.164 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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,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