Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1",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.0008324/0.0008325, allocations: 174 kB / 16.77 MB, free: 4.902 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.124/1.124, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0006698/0.0006695, allocations: 93.42 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.05644/0.05644, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.000363, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06061/0.06099, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.001314/0.06233, allocations: 1.42 MB / 443.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006291/0.06298, allocations: 0.5428 MB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.461e-05/0.06308, allocations: 0 / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.078e-05/0.06312, allocations: 7.922 kB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.06324, allocations: 11.88 kB / 444.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.06355, allocations: 87.83 kB / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.532e-05/0.06365, allocations: 75.78 kB / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.798e-05/0.06375, allocations: 29.11 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.283e-05/0.06385, allocations: 43.77 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.218e-05/0.06391, allocations: 39.78 kB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.06393, allocations: 0 / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.341e-05/0.06395, allocations: 4 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.507e-05/0.06399, allocations: 27.91 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.26e-05/0.06404, allocations: 65.44 kB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.056e-05/0.06411, allocations: 67.81 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.06412, allocations: 0 / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.06413, allocations: 0 / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.06413, allocations: 0 / 444.9 MB, free: 14.11 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0003477/0.06449, allocations: 407.3 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.06452, allocations: 8.031 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.96e-05/0.06456, allocations: 46.73 kB / 445.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.737e-05/0.06459, allocations: 16.75 kB / 445.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.06474, allocations: 212 kB / 445.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.06477, allocations: 8.375 kB / 445.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.06479, allocations: 12.38 kB / 445.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.06517, allocations: 289.3 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.06519, allocations: 3.938 kB / 445.9 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.128e-06/0.0652, allocations: 0 / 445.9 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.06521, allocations: 0 / 445.9 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.06533, allocations: 55.97 kB / 446 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002222/0.06556, allocations: 322.3 kB / 446.3 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.06574, allocations: 135.9 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.709e-05/0.06584, allocations: 78.61 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.06587, allocations: 4 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.06589, allocations: 34.5 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.0659, allocations: 4 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003182/0.06622, allocations: 169.5 kB / 446.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.06627, allocations: 126.6 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.905e-05/0.06636, allocations: 150.2 kB / 447 MB, free: 11.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.698e-06/0.06637, allocations: 33.69 kB / 447 MB, free: 11.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.343e-05/0.0664, allocations: 96.38 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.06642, allocations: 20.25 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-06/0.06643, allocations: 4 kB / 447.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.695e-05/0.06647, allocations: 326.8 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.704e-05/0.06654, allocations: 27.98 kB / 447.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.443e-05/0.06662, allocations: 142.5 kB / 447.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.06676, allocations: 170.4 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.06677, allocations: 0 / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002122/0.06698, allocations: 185.5 kB / 447.9 MB, free: 10.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.067, allocations: 9.094 kB / 447.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.06701, allocations: 7.984 kB / 448 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.06703, allocations: 4 kB / 448 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.877e-05/0.06714, allocations: 35.92 kB / 448 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.06715, allocations: 4 kB / 448 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.218e-05/0.06723, allocations: 15.88 kB / 448 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.06724, allocations: 12 kB / 448 MB, free: 10.61 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: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.438e-05/0.06731, allocations: 145.6 kB / 448.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.06745, allocations: 117.7 kB / 448.3 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.06749, allocations: 16.72 kB / 448.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.0675, allocations: 7.938 kB / 448.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.06751, allocations: 0 / 448.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.06752, allocations: 3.938 kB / 448.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.06764, allocations: 197.5 kB / 448.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.06764, allocations: 0 / 448.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.527e-05/0.06774, allocations: 23.98 kB / 448.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.06775, allocations: 4 kB / 448.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.06777, allocations: 8 kB / 448.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.06778, allocations: 4.078 kB / 448.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.06778, allocations: 7.969 kB / 448.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.06799, allocations: 256.8 kB / 448.8 MB, free: 9.746 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.222e-05/0.06804, allocations: 104.9 kB / 448.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.06806, allocations: 3.984 kB / 448.9 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.776e-05/0.06814, allocations: 8 kB / 448.9 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.088e-05/0.06817, allocations: 7.875 kB / 448.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.06818, allocations: 4 kB / 448.9 MB, free: 9.602 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.563e-05/0.06823, allocations: 119.9 kB / 449 MB, free: 9.484 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.06824, allocations: 0 / 449 MB, free: 9.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.06848, allocations: 20 kB / 449.1 MB, free: 9.465 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * 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.0004381/0.06892, allocations: 0.8489 MB / 449.9 MB, free: 8.582 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000175/0.06911, allocations: 107.8 kB / 450 MB, free: 8.477 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.06912, allocations: 0 / 450 MB, free: 8.477 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.422e-05/0.06916, allocations: 20.98 kB / 450 MB, free: 8.457 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.06954, allocations: 83.89 kB / 450.1 MB, free: 8.375 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008197/0.07038, allocations: 0.8655 MB / 451 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.698e-05/0.07048, allocations: 0.7166 MB / 451.7 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.898e-05/0.07054, allocations: 35.42 kB / 451.7 MB, free: 6.621 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.07054, allocations: 0 / 451.7 MB, free: 6.621 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.277/2.347, allocations: 1.748 MB / 453.5 MB, free: 4.867 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,add.y,sample.y,upSample1.y,upSample2.y Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(upSample1.b),previous(upSample1.b_super),previous(upSample2.b),previous(upSample2.b_super),sample.u,sample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time,upSample1.b,upSample1.b_super,upSample1.dummy,upSample1.factor,upSample1.inferFactor,upSample1.u,upSample1.u_super,upSample1.y,upSample2.b,upSample2.b_super,upSample2.dummy,upSample2.factor,upSample2.inferFactor,upSample2.u,upSample2.u_super,upSample2.y