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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|upSample.y|superSampleIpo.y|FIR1.y|FIR2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 197 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.6 MB / 244.3 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007593/0.0007592, allocations: 96.3 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002377, allocations: 11.94 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2283, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.001675/0.2301, allocations: 1.436 MB / 408.9 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009075/0.231, allocations: 0.638 MB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.2311, allocations: 7.938 kB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.2313, allocations: 11.92 kB / 409.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002061/0.2315, allocations: 41.25 kB / 409.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.2319, allocations: 103.2 kB / 409.7 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.2321, allocations: 135.6 kB / 409.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.2322, allocations: 23.17 kB / 409.9 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.2324, allocations: 65.02 kB / 409.9 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.2325, allocations: 95.64 kB / 410 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.2326, allocations: 8 kB / 410 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.384e-05/0.2326, allocations: 12.75 kB / 410.1 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.866e-05/0.2327, allocations: 63.8 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.911e-05/0.2328, allocations: 59.84 kB / 410.2 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.2329, allocations: 139.7 kB / 410.3 MB, free: 25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.233, allocations: 0 / 410.3 MB, free: 25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.233, allocations: 0 / 410.3 MB, free: 25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.233, allocations: 0 / 410.3 MB, free: 25 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.0006911/0.2337, allocations: 482.5 kB / 410.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2337, allocations: 12.03 kB / 410.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.2339, allocations: 39.7 kB / 410.8 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.2341, allocations: 230.7 kB / 411.1 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.2342, allocations: 19.95 kB / 411.1 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.2342, allocations: 23.94 kB / 411.1 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008973/0.2351, allocations: 0.6258 MB / 411.7 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2351, allocations: 3.938 kB / 411.7 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.2352, allocations: 4 kB / 411.7 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.2352, allocations: 15.98 kB / 411.8 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.2355, allocations: 183.8 kB / 411.9 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003655/0.2359, allocations: 378.2 kB / 412.3 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.2363, allocations: 239.6 kB / 412.5 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.2365, allocations: 162.6 kB / 412.7 MB, free: 22.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.2366, allocations: 7.938 kB / 412.7 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.2366, allocations: 38.56 kB / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.214e-06/0.2366, allocations: 0 / 412.7 MB, free: 22.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007225/0.2373, allocations: 434.7 kB / 413.2 MB, free: 21.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.976e-05/0.2374, allocations: 134.7 kB / 413.3 MB, free: 21.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.2375, allocations: 176 kB / 413.5 MB, free: 21.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.2376, allocations: 33.7 kB / 413.5 MB, free: 21.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.773e-05/0.2376, allocations: 97.12 kB / 413.6 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.2376, allocations: 55.47 kB / 413.7 MB, free: 21.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.2377, allocations: 8.125 kB / 413.7 MB, free: 21.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/0.2377, allocations: 342.8 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.2378, allocations: 68.83 kB / 414.1 MB, free: 20.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.238, allocations: 326.7 kB / 414.4 MB, free: 20.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.2382, allocations: 139.8 kB / 414.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2382, allocations: 4 kB / 414.5 MB, free: 20.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004699/0.2387, allocations: 405.3 kB / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.2387, allocations: 12 kB / 414.9 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.2388, allocations: 8 kB / 414.9 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.2388, allocations: 12 kB / 414.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/0.239, allocations: 87.83 kB / 415 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.239, allocations: 15.94 kB / 415 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.2392, allocations: 24.19 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.2392, allocations: 28 kB / 415.1 MB, free: 19.82 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.0001369/0.2393, allocations: 189.5 kB / 415.3 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/0.2398, allocations: 289.3 kB / 415.6 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.096e-05/0.2398, allocations: 30.66 kB / 415.6 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2398, allocations: 4 kB / 415.6 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2398, allocations: 4 kB / 415.6 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2399, allocations: 7.984 kB / 415.6 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.24, allocations: 253.2 kB / 415.9 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.24, allocations: 11.88 kB / 415.9 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.2403, allocations: 63.89 kB / 415.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.2403, allocations: 0 / 415.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.2403, allocations: 8 kB / 415.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2403, allocations: 4 kB / 415.9 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2403, allocations: 0 / 415.9 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004679/0.2408, allocations: 436.3 kB / 416.4 MB, free: 18.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.045e-05/0.2409, allocations: 136.7 kB / 416.5 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.179e-05/0.241, allocations: 15.98 kB / 416.5 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.2411, allocations: 12 kB / 416.5 MB, free: 18.28 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.2411, allocations: 7.984 kB / 416.5 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.2412, allocations: 12 kB / 416.6 MB, free: 18.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.464e-05/0.2412, allocations: 131.2 kB / 416.7 MB, free: 18.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2413, allocations: 4 kB / 416.7 MB, free: 18.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003385/0.2416, allocations: 52 kB / 416.7 MB, free: 18.07 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.0001456/0.2418, allocations: 111.2 kB / 416.8 MB, free: 17.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004164/0.2422, allocations: 296.3 kB / 417.1 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2422, allocations: 0 / 417.1 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.645e-05/0.2422, allocations: 9.562 kB / 417.1 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.2428, allocations: 222 kB / 417.4 MB, free: 17.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.244, allocations: 0.6432 MB / 418 MB, free: 16.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.2442, allocations: 0.7764 MB / 418.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.162e-05/0.2443, allocations: 35.42 kB / 418.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2443, allocations: 0 / 418.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of Templates: time 0.003824/0.2481, allocations: 2.931 MB / 421.7 MB, free: 13.02 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.makefile (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 & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2 --alarm=480 -emit_protected > 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/jenkins/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) Reference file matches