Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold",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.00086/0.0008602, allocations: 178 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.212/1.212, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.000691/0.000691, allocations: 91.86 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05621/0.05621, allocations: 12.19 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003614/0.0003616, allocations: 23.98 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0605/0.06087, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.001259/0.06216, allocations: 1.294 MB / 443.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006406/0.06283, allocations: 0.5233 MB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.177e-05/0.06293, allocations: 4 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.856e-05/0.06296, allocations: 7.922 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.06308, allocations: 7.938 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.0633, allocations: 51.81 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.884e-05/0.06339, allocations: 59.73 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.294e-05/0.06348, allocations: 15.98 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.394e-05/0.06357, allocations: 35.84 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.856e-05/0.06362, allocations: 19.86 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.06364, allocations: 0 / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.093e-05/0.06366, allocations: 4 kB / 444.5 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.859e-05/0.0637, allocations: 11.94 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.097e-05/0.06373, allocations: 57.5 kB / 444.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.704e-05/0.06379, allocations: 35.92 kB / 444.6 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.0638, allocations: 4 kB / 444.6 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.06381, allocations: 0 / 444.6 MB, free: 14.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.06382, allocations: 0 / 444.6 MB, free: 14.4 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003136/0.06414, allocations: 367.5 kB / 445 MB, free: 13.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.06418, allocations: 8.031 kB / 445 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.847e-05/0.06421, allocations: 34.75 kB / 445 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.06424, allocations: 16.84 kB / 445 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.06438, allocations: 200.6 kB / 445.2 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.06439, allocations: 4.375 kB / 445.2 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.06441, allocations: 11.88 kB / 445.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.06465, allocations: 146.6 kB / 445.4 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.06467, allocations: 0 / 445.4 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.06468, allocations: 0 / 445.4 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.06469, allocations: 4 kB / 445.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.144e-05/0.06478, allocations: 27.92 kB / 445.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.06502, allocations: 287.5 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.432e-05/0.06512, allocations: 102.4 kB / 445.8 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.014e-05/0.06519, allocations: 43.48 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.06522, allocations: 4 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.11e-05/0.06523, allocations: 34.56 kB / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.06524, allocations: 4 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002439/0.06549, allocations: 101.5 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.06553, allocations: 140.9 kB / 446.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.835e-05/0.06562, allocations: 153.7 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-06/0.06563, allocations: 25.7 kB / 446.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.59e-05/0.06566, allocations: 96.12 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.205e-05/0.06568, allocations: 3.906 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-06/0.06569, allocations: 3.938 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.423e-05/0.06573, allocations: 322.8 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.097e-05/0.06577, allocations: 12 kB / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.406e-05/0.06582, allocations: 52.28 kB / 446.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.561e-05/0.06591, allocations: 64.22 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.06592, allocations: 0 / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001287/0.06606, allocations: 93.39 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.06608, allocations: 4 kB / 446.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.06609, allocations: 4 kB / 446.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.0661, allocations: 8.141 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.254e-05/0.06618, allocations: 15.98 kB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.06619, allocations: 3.938 kB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.286e-05/0.06624, allocations: 7.938 kB / 447 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.06625, allocations: 4 kB / 447 MB, free: 11.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (6): * Single equations (assignments): 6 * 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 5.229e-05/0.06631, allocations: 130.4 kB / 447.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.432e-05/0.06638, allocations: 57.59 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.352e-05/0.06641, allocations: 11.94 kB / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.06642, allocations: 4 kB / 447.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.06643, allocations: 3.938 kB / 447.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.06643, allocations: 4 kB / 447.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.06657, allocations: 173.6 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.06658, allocations: 3.938 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.097e-05/0.06664, allocations: 19.98 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.06665, allocations: 0 / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.06666, allocations: 4 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.06667, allocations: 0 / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.06667, allocations: 7.938 kB / 447.4 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001611/0.06684, allocations: 198 kB / 447.6 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.497e-05/0.06689, allocations: 89 kB / 447.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.06691, allocations: 12 kB / 447.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.164e-05/0.06698, allocations: 7.984 kB / 447.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.502e-05/0.06701, allocations: 3.938 kB / 447.7 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.06702, allocations: 4 kB / 447.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.541e-05/0.06707, allocations: 107.2 kB / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06708, allocations: 0 / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002077/0.06729, allocations: 12 kB / 447.8 MB, free: 10.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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.0002611/0.06756, allocations: 0.7305 MB / 448.6 MB, free: 9.988 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.06769, allocations: 59.91 kB / 448.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.0677, allocations: 0 / 448.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.703e-05/0.06774, allocations: 8 kB / 448.6 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.06809, allocations: 39.95 kB / 448.7 MB, free: 9.883 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006612/0.06876, allocations: 0.6163 MB / 449.3 MB, free: 9.191 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.344e-05/0.06886, allocations: 0.6926 MB / 450 MB, free: 8.473 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.733e-05/0.06891, allocations: 27.48 kB / 450 MB, free: 8.445 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.06891, allocations: 0 / 450 MB, free: 8.445 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.364/2.433, allocations: 1.146 MB / 451.1 MB, free: 7.301 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.u,hold.y,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