Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 226.5 MB / 244.7 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008185/0.0008184, allocations: 113.1 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002765, allocations: 4 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2547, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.001919/0.2567, allocations: 1.455 MB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009832/0.2577, allocations: 0.5212 MB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.2579, allocations: 4 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.349e-05/0.258, allocations: 11.86 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.2581, allocations: 15.86 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004514/0.2586, allocations: 87.98 kB / 410.2 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.2587, allocations: 83.7 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.2589, allocations: 30.5 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.259, allocations: 39.83 kB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.794e-05/0.2591, allocations: 32.83 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.2591, allocations: 4 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.065e-05/0.2591, allocations: 11.98 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.2592, allocations: 24.81 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.941e-05/0.2593, allocations: 65.44 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.2594, allocations: 78.27 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.2594, allocations: 0 / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.2594, allocations: 0 / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.2594, allocations: 0 / 410.6 MB, free: 25.21 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.000497/0.26, allocations: 411.4 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.26, allocations: 8.031 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.84e-05/0.26, allocations: 42.73 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.2602, allocations: 28.69 kB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.2604, allocations: 209.7 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.2604, allocations: 8.375 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/0.2604, allocations: 12.38 kB / 411.3 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/0.2609, allocations: 281.3 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.261, allocations: 3.984 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.261, allocations: 4 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.261, allocations: 0 / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001265/0.2611, allocations: 51.92 kB / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003137/0.2614, allocations: 318.4 kB / 411.9 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.2616, allocations: 127.9 kB / 412.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.2618, allocations: 78.66 kB / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.2618, allocations: 4 kB / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.2618, allocations: 38.55 kB / 412.2 MB, free: 23.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.2618, allocations: 3.938 kB / 412.2 MB, free: 23.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003951/0.2622, allocations: 181.6 kB / 412.4 MB, free: 23.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.2623, allocations: 126.9 kB / 412.5 MB, free: 23.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.2624, allocations: 146.2 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.2625, allocations: 25.7 kB / 412.7 MB, free: 22.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.022e-05/0.2625, allocations: 92.14 kB / 412.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.2626, allocations: 19.8 kB / 412.8 MB, free: 22.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-06/0.2626, allocations: 8.125 kB / 412.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.2627, allocations: 326.8 kB / 413.1 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.531e-05/0.2627, allocations: 27.98 kB / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.2629, allocations: 129.4 kB / 413.2 MB, free: 22.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.263, allocations: 182.3 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2631, allocations: 0 / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000262/0.2633, allocations: 181.2 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2634, allocations: 4.531 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.2634, allocations: 8 kB / 413.6 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.2634, allocations: 8 kB / 413.6 MB, free: 21.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.2635, allocations: 31.92 kB / 413.6 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2635, allocations: 12 kB / 413.7 MB, free: 21.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/0.2636, allocations: 11.84 kB / 413.7 MB, free: 21.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.2636, allocations: 16 kB / 413.7 MB, free: 21.73 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 9.178e-05/0.2637, allocations: 139.9 kB / 413.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.2639, allocations: 121.4 kB / 413.9 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.516e-05/0.264, allocations: 16.72 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.264, allocations: 0 / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.264, allocations: 4 kB / 414 MB, free: 21.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.264, allocations: 7.875 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.2641, allocations: 193.6 kB / 414.2 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2642, allocations: 3.938 kB / 414.2 MB, free: 21.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001015/0.2643, allocations: 23.98 kB / 414.2 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.2643, allocations: 4 kB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.2643, allocations: 7.984 kB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2643, allocations: 4 kB / 414.2 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2643, allocations: 4 kB / 414.2 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.2645, allocations: 251.7 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.2646, allocations: 112.9 kB / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.2647, allocations: 8 kB / 414.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.232e-05/0.2648, allocations: 8 kB / 414.6 MB, free: 20.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.2648, allocations: 3.938 kB / 414.6 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.2648, allocations: 7.984 kB / 414.6 MB, free: 20.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.702e-05/0.2649, allocations: 116.1 kB / 414.7 MB, free: 20.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2649, allocations: 0 / 414.7 MB, free: 20.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.2651, allocations: 20 kB / 414.7 MB, free: 20.59 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.0005503/0.2657, allocations: 0.8431 MB / 415.6 MB, free: 19.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.2659, allocations: 111.8 kB / 415.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2659, allocations: 0 / 415.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.479e-05/0.266, allocations: 12 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.2664, allocations: 80.98 kB / 415.8 MB, free: 19.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.2675, allocations: 0.8774 MB / 416.6 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.2677, allocations: 0.7244 MB / 417.4 MB, free: 17.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.017e-05/0.2677, allocations: 35.42 kB / 417.4 MB, free: 17.74 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2677, allocations: 0 / 417.4 MB, free: 17.74 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.49/2.758, allocations: 1.739 MB / 419.1 MB, free: 16 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,upSample1.y,upSample2.y,add.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),sample1.u,sample1.y,sine.amplitude,sine.f,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