Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001207, allocations: 194 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008266/0.0008266, allocations: 92.69 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003456, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2639, allocations: 51.28 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample): time 0.001723/0.2657, allocations: 1.302 MB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007897/0.2665, allocations: 0.4951 MB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.683e-05/0.2666, allocations: 6.562 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.482e-05/0.2667, allocations: 0 / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.2668, allocations: 7.922 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.2671, allocations: 55.58 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.09e-05/0.2672, allocations: 39.86 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.2673, allocations: 13.64 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2675, allocations: 31.84 kB / 410.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.768e-05/0.2675, allocations: 13.09 kB / 410.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.2676, allocations: 4 kB / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.403e-05/0.2676, allocations: 8 kB / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.644e-05/0.2677, allocations: 12.92 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.019e-05/0.2677, allocations: 45.58 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.2678, allocations: 39.86 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.2678, allocations: 4.922 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2678, allocations: 0 / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2679, allocations: 0.75 kB / 410.2 MB, free: 25.62 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004436/0.2683, allocations: 367.9 kB / 410.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.2684, allocations: 8.031 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.371e-05/0.2684, allocations: 34.75 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.2686, allocations: 20.83 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.2687, allocations: 206.4 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.2688, allocations: 8.375 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.2688, allocations: 2.688 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.269, allocations: 117.8 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2691, allocations: 7.938 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.2691, allocations: 4 kB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2691, allocations: 0 / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.295e-05/0.2692, allocations: 19.98 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002927/0.2695, allocations: 282.5 kB / 411.3 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.493e-05/0.2696, allocations: 71.78 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.898e-05/0.2697, allocations: 42.62 kB / 411.4 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.2697, allocations: 0 / 411.4 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.2697, allocations: 34.56 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.2697, allocations: 0 / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002591/0.27, allocations: 89.7 kB / 411.5 MB, free: 24.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.27, allocations: 110.8 kB / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.814e-05/0.2701, allocations: 137.8 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.729e-06/0.2702, allocations: 37.64 kB / 411.8 MB, free: 23.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.623e-05/0.2702, allocations: 84.14 kB / 411.9 MB, free: 23.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.2702, allocations: 3.906 kB / 411.9 MB, free: 23.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-06/0.2702, allocations: 4.188 kB / 411.9 MB, free: 23.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.373e-05/0.2703, allocations: 326.8 kB / 412.2 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.091e-05/0.2704, allocations: 11.98 kB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.173e-05/0.2704, allocations: 31.44 kB / 412.2 MB, free: 23.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.582e-05/0.2705, allocations: 51.36 kB / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2705, allocations: 4 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001155/0.2706, allocations: 77.55 kB / 412.4 MB, free: 23.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2707, allocations: 8 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2707, allocations: 0 / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.2707, allocations: 0 / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.288e-05/0.2708, allocations: 11.98 kB / 412.4 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.2708, allocations: 7.938 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.157e-05/0.2708, allocations: 7.938 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.2709, allocations: 0 / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.799e-05/0.2709, allocations: 125.9 kB / 412.5 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.271, allocations: 53.55 kB / 412.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.271, allocations: 15.86 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2711, allocations: 0 / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2711, allocations: 0 / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2711, allocations: 4 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.2712, allocations: 173.5 kB / 412.8 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2712, allocations: 0 / 412.8 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.622e-05/0.2713, allocations: 11.98 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2713, allocations: 8.062 kB / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.2713, allocations: 0 / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2713, allocations: 0 / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2713, allocations: 4 kB / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001446/0.2715, allocations: 185.1 kB / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.84e-05/0.2715, allocations: 93 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.2715, allocations: 0 / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.3e-05/0.2716, allocations: 4 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.2717, allocations: 4.125 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.2717, allocations: 4 kB / 413.1 MB, free: 22.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.026e-05/0.2717, allocations: 106.2 kB / 413.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2717, allocations: 0 / 413.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000225/0.272, allocations: 8 kB / 413.2 MB, free: 22.24 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0003289/0.2723, allocations: 0.7218 MB / 413.9 MB, free: 21.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.2724, allocations: 43.86 kB / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2725, allocations: 0 / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.596e-05/0.2725, allocations: 11.98 kB / 413.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.2729, allocations: 26.86 kB / 414 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007237/0.2736, allocations: 0.5731 MB / 414.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001343/0.2738, allocations: 0.6927 MB / 415.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.2738, allocations: 15.44 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2738, allocations: 0 / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.55/2.824, allocations: 1.043 MB / 416.3 MB, free: 18.99 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SuperSample/SuperSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,superSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,superSample1.factor,superSample1.inferFactor,superSample1.u,superSample1.y,time