Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.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.UpSample2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 192.3 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 226.5 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009978/0.0009975, allocations: 96.14 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002821/0.0002822, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2541, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.001705/0.2558, allocations: 1.448 MB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009325/0.2568, allocations: 0.5985 MB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.257, allocations: 3.938 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.2571, allocations: 16.7 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.2573, allocations: 30.34 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004246/0.2578, allocations: 110.4 kB / 410.3 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.2579, allocations: 143.6 kB / 410.5 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.2581, allocations: 31.2 kB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.2582, allocations: 60.52 kB / 410.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.2584, allocations: 101.3 kB / 410.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.2584, allocations: 8 kB / 410.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.401e-05/0.2585, allocations: 11.98 kB / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.441e-05/0.2586, allocations: 51.88 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.098e-05/0.2586, allocations: 114 kB / 410.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.2588, allocations: 149 kB / 411 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2588, allocations: 3.281 kB / 411 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2588, allocations: 0 / 411 MB, free: 24.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2588, allocations: 0 / 411 MB, free: 24.83 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006505/0.2595, allocations: 478.6 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2595, allocations: 12.03 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.753e-05/0.2596, allocations: 54.73 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.2597, allocations: 36.64 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.2599, allocations: 247.8 kB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.26, allocations: 16.33 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/0.26, allocations: 20.38 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008635/0.2609, allocations: 0.626 MB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2609, allocations: 0 / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.2609, allocations: 11.98 kB / 412.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.261, allocations: 15.92 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003176/0.2613, allocations: 187.8 kB / 412.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003235/0.2616, allocations: 370.2 kB / 413 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.262, allocations: 247.6 kB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.2622, allocations: 158.6 kB / 413.4 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.2622, allocations: 11.98 kB / 413.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.2623, allocations: 34.56 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.2623, allocations: 0 / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007232/0.263, allocations: 434.7 kB / 413.9 MB, free: 21.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.595e-05/0.2631, allocations: 130.7 kB / 414 MB, free: 21.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.2632, allocations: 176 kB / 414.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.2632, allocations: 37.83 kB / 414.2 MB, free: 21.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.794e-05/0.2633, allocations: 101.1 kB / 414.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.173e-05/0.2633, allocations: 47.44 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.148e-05/0.2633, allocations: 12 kB / 414.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.724e-05/0.2634, allocations: 334.8 kB / 414.7 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.2635, allocations: 76.83 kB / 414.8 MB, free: 20.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.2637, allocations: 318.7 kB / 415.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.264, allocations: 420.9 kB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.264, allocations: 8 kB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004484/0.2645, allocations: 397.6 kB / 415.9 MB, free: 19.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2645, allocations: 8 kB / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.2645, allocations: 16.12 kB / 415.9 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.2645, allocations: 12 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.2647, allocations: 83.83 kB / 416 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.2648, allocations: 15.94 kB / 416.1 MB, free: 19.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.2649, allocations: 35.73 kB / 416.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.2649, allocations: 24 kB / 416.1 MB, free: 19.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 (superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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 0.00012/0.2651, allocations: 186.3 kB / 416.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/0.2654, allocations: 293.2 kB / 416.6 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.212e-05/0.2655, allocations: 38.64 kB / 416.6 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2655, allocations: 7.938 kB / 416.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2655, allocations: 0 / 416.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2655, allocations: 0 / 416.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.2657, allocations: 253.2 kB / 416.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2657, allocations: 4 kB / 416.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.266, allocations: 63.91 kB / 416.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.266, allocations: 0 / 416.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.266, allocations: 11.98 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.266, allocations: 4 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.266, allocations: 4 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004508/0.2665, allocations: 440.1 kB / 417.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.352e-05/0.2666, allocations: 132.7 kB / 417.5 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.2666, allocations: 20 kB / 417.5 MB, free: 17.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.2667, allocations: 19.92 kB / 417.6 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.2668, allocations: 0 / 417.6 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.2668, allocations: 15.98 kB / 417.6 MB, free: 17.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.075e-05/0.2669, allocations: 127.2 kB / 417.7 MB, free: 17.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2669, allocations: 0 / 417.7 MB, free: 17.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003407/0.2672, allocations: 48 kB / 417.7 MB, free: 17.44 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: 7 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.0008873/0.2681, allocations: 1.181 MB / 418.9 MB, free: 16.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003868/0.2685, allocations: 301.8 kB / 419.2 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2685, allocations: 0 / 419.2 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.523e-05/0.2686, allocations: 12.06 kB / 419.2 MB, free: 15.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005737/0.2691, allocations: 210 kB / 419.4 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.2711, allocations: 1.642 MB / 421.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.2713, allocations: 0.7841 MB / 421.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.608e-05/0.2714, allocations: 67.41 kB / 421.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of SimCode: time 4e-07/0.2714, allocations: 0 / 421.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.925/3.196, allocations: 3.336 MB / 425.3 MB, free: 9.715 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,upSample.y,superSampleIpo.y,FIR1.y,FIR2.y Variables in the result:FIR1.a[1],FIR1.a[2],FIR1.a[3],FIR1.cBufStart[1],FIR1.cBufStart[2],FIR1.first,FIR1.n,FIR1.u,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.u_buffer[3],FIR1.y,FIR2.a[1],FIR2.a[2],FIR2.a[3],FIR2.a[4],FIR2.a[5],FIR2.cBufStart[1],FIR2.cBufStart[2],FIR2.cBufStart[3],FIR2.cBufStart[4],FIR2.first,FIR2.n,FIR2.u,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.u_buffer[5],FIR2.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(FIR1.first),previous(FIR1.u_buffer[1]),previous(FIR1.u_buffer[2]),previous(FIR2.first),previous(FIR2.u_buffer[1]),previous(FIR2.u_buffer[2]),previous(FIR2.u_buffer[3]),previous(FIR2.u_buffer[4]),previous(superSampleIpo.first),previous(superSampleIpo.ticks),previous(superSampleIpo.uu),previous(upSample.b),previous(upSample.b_super),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,upSample.b,upSample.b_super,upSample.dummy,upSample.factor,upSample.inferFactor,upSample.u,upSample.u_super,upSample.y