Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated.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.SuperSampleInterpolated,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSampleInterpolated",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSampleInterpolated",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001203, allocations: 202.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007905/0.0007905, allocations: 100.7 kB / 296.7 MB, free: 6.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002472/0.0002474, allocations: 8 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2461, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated): time 0.001534/0.2477, allocations: 1.316 MB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008315/0.2486, allocations: 0.5473 MB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.245e-05/0.2487, allocations: 7.938 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.669e-05/0.2487, allocations: 8.766 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.2489, allocations: 19.92 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.2492, allocations: 64.69 kB / 410.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.756e-05/0.2493, allocations: 67.78 kB / 410.2 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.964e-05/0.2494, allocations: 15.77 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2496, allocations: 39.83 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.539e-05/0.2496, allocations: 27.86 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.2496, allocations: 0 / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.213e-05/0.2497, allocations: 12 kB / 410.3 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.852e-05/0.2497, allocations: 15.92 kB / 410.3 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.2498, allocations: 61.48 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.705e-05/0.2499, allocations: 55.88 kB / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2499, allocations: 0 / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2499, allocations: 5.875 kB / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.2499, allocations: 0 / 410.4 MB, free: 25.44 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004581/0.2504, allocations: 397.1 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.2504, allocations: 8.031 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.2505, allocations: 39.5 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.2506, allocations: 27.11 kB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.2508, allocations: 198.6 kB / 411 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.2508, allocations: 8.375 kB / 411.1 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.2508, allocations: 4.375 kB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.2512, allocations: 231.9 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.2512, allocations: 0 / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.2512, allocations: 0 / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2513, allocations: 4 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.2514, allocations: 59.89 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002497/0.2517, allocations: 294.6 kB / 411.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.2518, allocations: 107.8 kB / 411.7 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.73e-05/0.2519, allocations: 62.67 kB / 411.8 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.252, allocations: 0 / 411.8 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.252, allocations: 38.56 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.252, allocations: 3.938 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003609/0.2524, allocations: 157.4 kB / 412 MB, free: 23.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.2524, allocations: 110.8 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.44e-05/0.2525, allocations: 133.8 kB / 412.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.2525, allocations: 29.7 kB / 412.3 MB, free: 23.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.739e-05/0.2526, allocations: 92.12 kB / 412.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.2526, allocations: 16.03 kB / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.2526, allocations: 0 / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.4e-05/0.2526, allocations: 322.8 kB / 412.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.281e-05/0.2527, allocations: 23.98 kB / 412.7 MB, free: 22.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.445e-05/0.2528, allocations: 92 kB / 412.8 MB, free: 22.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.2529, allocations: 121.3 kB / 412.9 MB, free: 22.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2529, allocations: 0 / 412.9 MB, free: 22.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002063/0.2531, allocations: 141.3 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2531, allocations: 8 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2531, allocations: 0 / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.2532, allocations: 4.344 kB / 413.1 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.2533, allocations: 31.92 kB / 413.1 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.2533, allocations: 4 kB / 413.1 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.683e-05/0.2533, allocations: 11.84 kB / 413.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.2534, allocations: 8 kB / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,superSampleIpo.first,$CLKPRE.superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 3 (superSampleIpo.ticks,superSampleIpo.first,superSampleIpo.uu) * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.918e-05/0.2534, allocations: 132.4 kB / 413.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.2536, allocations: 97.52 kB / 413.3 MB, free: 22.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.429e-05/0.2536, allocations: 16.25 kB / 413.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2536, allocations: 4 kB / 413.4 MB, free: 22.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2537, allocations: 11.92 kB / 413.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2537, allocations: 0 / 413.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.2538, allocations: 193.5 kB / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2538, allocations: 0.625 kB / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.971e-05/0.2539, allocations: 23.92 kB / 413.6 MB, free: 21.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2539, allocations: 3.984 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.2539, allocations: 8 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2539, allocations: 4 kB / 413.6 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2539, allocations: 0 / 413.6 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.2542, allocations: 229.1 kB / 413.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.2542, allocations: 100.9 kB / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.2543, allocations: 4 kB / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.632e-05/0.2543, allocations: 7.938 kB / 413.9 MB, free: 21.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.2544, allocations: 11.98 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.2544, allocations: 4 kB / 414 MB, free: 21.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.643e-05/0.2544, allocations: 118.3 kB / 414.1 MB, free: 21.31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2545, allocations: 0 / 414.1 MB, free: 21.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002334/0.2547, allocations: 12 kB / 414.1 MB, free: 21.3 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: 3 (superSampleIpo.usedFactor,superSampleIpo.ticks,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 3 (superSampleIpo.ticks,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0004797/0.2552, allocations: 0.8154 MB / 414.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001809/0.2554, allocations: 88.5 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2554, allocations: 0 / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.428e-05/0.2554, allocations: 8 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004021/0.2558, allocations: 56 kB / 415 MB, free: 20.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009608/0.2568, allocations: 0.7529 MB / 415.8 MB, free: 19.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.2569, allocations: 0.7004 MB / 416.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.071e-05/0.257, allocations: 31.48 kB / 416.5 MB, free: 18.69 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.257, allocations: 0 / 416.5 MB, free: 18.69 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.569/2.826, allocations: 1.431 MB / 418 MB, free: 17.27 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSampleInterpolated_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSampleInterpolated.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SuperSampleInterpolated/SuperSampleInterpolated.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSampleInterpolated.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,superSampleIpo.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(superSampleIpo.first),previous(superSampleIpo.ticks),previous(superSampleIpo.uu),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,superSampleIpo.factor,superSampleIpo.first,superSampleIpo.inferFactor,superSampleIpo.ticks,superSampleIpo.u,superSampleIpo.u_pre,superSampleIpo.u_preSuper,superSampleIpo.u_super,superSampleIpo.usedFactor,superSampleIpo.uu,superSampleIpo.y,time