Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 200.6 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 226.5 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007617/0.0007618, allocations: 105.6 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002681/0.0002682, allocations: 8 kB / 356.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2619, allocations: 51.28 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.001562/0.2635, allocations: 1.316 MB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007453/0.2643, allocations: 0.4971 MB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.95e-05/0.2644, allocations: 3.938 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.068e-05/0.2644, allocations: 1.781 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.2645, allocations: 11.94 kB / 410 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.2648, allocations: 51.2 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.895e-05/0.2649, allocations: 43.86 kB / 410.1 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.265, allocations: 21.67 kB / 410.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.2651, allocations: 32.53 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.733e-05/0.2652, allocations: 19.86 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.2652, allocations: 2.188 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.841e-05/0.2653, allocations: 8 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.303e-05/0.2653, allocations: 8 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.41e-05/0.2653, allocations: 57.48 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.784e-05/0.2654, allocations: 43.86 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.2655, allocations: 4 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2655, allocations: 1.656 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.2655, allocations: 0 / 410.2 MB, free: 25.57 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.0003922/0.2659, allocations: 373 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2659, allocations: 8.719 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.502e-05/0.266, allocations: 38.75 kB / 410.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.2661, allocations: 25.8 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.2663, allocations: 206.3 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.2663, allocations: 384 / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.2663, allocations: 7.938 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.2666, allocations: 137.8 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2666, allocations: 0 / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.2666, allocations: 4 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2666, allocations: 4 kB / 411 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.72e-05/0.2667, allocations: 31.92 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002988/0.267, allocations: 291.3 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.2671, allocations: 106.4 kB / 411.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.737e-05/0.2672, allocations: 47.47 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.2673, allocations: 4 kB / 411.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.48e-05/0.2673, allocations: 38.56 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.2673, allocations: 0 / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002793/0.2676, allocations: 109.8 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/0.2676, allocations: 136.5 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.127e-05/0.2677, allocations: 145.7 kB / 411.9 MB, free: 23.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.2677, allocations: 25.7 kB / 411.9 MB, free: 23.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.172e-05/0.2678, allocations: 92.12 kB / 412 MB, free: 23.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.386e-05/0.2678, allocations: 7.906 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-06/0.2678, allocations: 8.094 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.196e-05/0.2679, allocations: 322.8 kB / 412.4 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.378e-05/0.2679, allocations: 8 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.603e-05/0.268, allocations: 48.28 kB / 412.4 MB, free: 23.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.335e-05/0.2681, allocations: 60.22 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.2681, allocations: 4 kB / 412.5 MB, free: 23 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001359/0.2682, allocations: 89.55 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2682, allocations: 4 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2682, allocations: 4 kB / 412.6 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.2683, allocations: 0 / 412.6 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.975e-05/0.2683, allocations: 15.98 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.2684, allocations: 3.938 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.463e-05/0.2684, allocations: 8.062 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.2684, allocations: 8 kB / 412.6 MB, free: 22.87 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 6.83e-05/0.2685, allocations: 125.7 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.279e-05/0.2686, allocations: 61.59 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.424e-05/0.2686, allocations: 11.88 kB / 412.8 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2686, allocations: 0 / 412.8 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2686, allocations: 3.938 kB / 412.8 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.2686, allocations: 4 kB / 412.8 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.2688, allocations: 181.6 kB / 413 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2688, allocations: 4.062 kB / 413 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.2689, allocations: 19.92 kB / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2689, allocations: 0 / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.2689, allocations: 4 kB / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2689, allocations: 128 / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2689, allocations: 7.938 kB / 413 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001535/0.2691, allocations: 202 kB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.2691, allocations: 93 kB / 413.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.613e-05/0.2691, allocations: 4 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.394e-05/0.2692, allocations: 7.984 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.2693, allocations: 7.938 kB / 413.3 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.361e-06/0.2693, allocations: 7.938 kB / 413.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.038e-05/0.2693, allocations: 113.9 kB / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2693, allocations: 0 / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002214/0.2696, allocations: 8 kB / 413.5 MB, free: 21.9 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.0003276/0.2699, allocations: 0.7305 MB / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001338/0.27, allocations: 47.84 kB / 414.2 MB, free: 21.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.27, allocations: 320 / 414.2 MB, free: 21.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.864e-05/0.2701, allocations: 16 kB / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.2705, allocations: 41.58 kB / 414.3 MB, free: 21.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008289/0.2713, allocations: 0.6044 MB / 414.9 MB, free: 20.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.2715, allocations: 0.6926 MB / 415.6 MB, free: 19.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.671e-05/0.2715, allocations: 23.48 kB / 415.6 MB, free: 19.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2715, allocations: 0 / 415.6 MB, free: 19.61 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.553/2.824, allocations: 1.15 MB / 416.8 MB, free: 18.46 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time