Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 191.6 kB / 17.37 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.485/1.485, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008918/0.0008917, allocations: 98.77 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002448/0.000245, allocations: 8 kB / 356.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2427, allocations: 51.29 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.001856/0.2446, allocations: 1.446 MB / 409.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009574/0.2456, allocations: 0.5317 MB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.2458, allocations: 9.719 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.33e-05/0.2458, allocations: 3.938 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.246, allocations: 11.86 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004669/0.2465, allocations: 89.84 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000131/0.2466, allocations: 79.72 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2468, allocations: 28.86 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.2469, allocations: 35.84 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.621e-05/0.247, allocations: 35.78 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.247, allocations: 4.625 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.942e-05/0.2471, allocations: 11.98 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.163e-05/0.2471, allocations: 24.5 kB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.756e-05/0.2472, allocations: 62.09 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.2474, allocations: 71.8 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2474, allocations: 0.5938 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2474, allocations: 3.031 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2474, allocations: 0 / 410.5 MB, free: 25.29 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005097/0.2479, allocations: 416 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.248, allocations: 12.03 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.2481, allocations: 26.61 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.2484, allocations: 213.7 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.2484, allocations: 8.375 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.2484, allocations: 8.375 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000472/0.2489, allocations: 288.8 kB / 411.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2489, allocations: 3.938 kB / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.2489, allocations: 4 kB / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.249, allocations: 4 kB / 411.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.2491, allocations: 55.91 kB / 411.5 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003208/0.2494, allocations: 306.4 kB / 411.8 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.2496, allocations: 131.9 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.2497, allocations: 74.66 kB / 412 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.2498, allocations: 4 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.2498, allocations: 38.55 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 2.655e-06/0.2498, allocations: 0 / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003724/0.2502, allocations: 185.8 kB / 412.2 MB, free: 23.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.2503, allocations: 118.8 kB / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.2504, allocations: 150.2 kB / 412.5 MB, free: 23.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.2504, allocations: 29.7 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.919e-05/0.2505, allocations: 88.14 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.315e-05/0.2505, allocations: 23.92 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-06/0.2505, allocations: 4 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.2506, allocations: 322.8 kB / 412.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.575e-05/0.2506, allocations: 31.92 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.2508, allocations: 134.1 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.2509, allocations: 178.3 kB / 413.3 MB, free: 22.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2509, allocations: 0 / 413.3 MB, free: 22.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002448/0.2512, allocations: 181.6 kB / 413.5 MB, free: 21.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.2512, allocations: 12.06 kB / 413.5 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.2512, allocations: 4 kB / 413.5 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.2513, allocations: 4 kB / 413.5 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.2514, allocations: 31.92 kB / 413.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.2514, allocations: 4 kB / 413.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.23e-05/0.2515, allocations: 19.84 kB / 413.5 MB, free: 21.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.2515, allocations: 11.98 kB / 413.5 MB, free: 21.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 9.41e-05/0.2516, allocations: 140 kB / 413.7 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.2518, allocations: 117.4 kB / 413.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.443e-05/0.2518, allocations: 16.72 kB / 413.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2518, allocations: 4 kB / 413.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2518, allocations: 0 / 413.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.2519, allocations: 11.92 kB / 413.8 MB, free: 21.56 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.252, allocations: 197.6 kB / 414 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.252, allocations: 0 / 414 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.2521, allocations: 27.92 kB / 414.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.2521, allocations: 0 / 414.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2522, allocations: 11.98 kB / 414.1 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2522, allocations: 4 kB / 414.1 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2522, allocations: 0 / 414.1 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.2524, allocations: 255.7 kB / 414.3 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.433e-05/0.2525, allocations: 112.9 kB / 414.4 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.2525, allocations: 15.94 kB / 414.4 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.733e-05/0.2526, allocations: 4 kB / 414.4 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.2526, allocations: 0 / 414.4 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.2527, allocations: 15.92 kB / 414.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.992e-05/0.2527, allocations: 112.1 kB / 414.6 MB, free: 20.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2527, allocations: 0 / 414.6 MB, free: 20.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002627/0.253, allocations: 20 kB / 414.6 MB, free: 20.71 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001178/0.2531, allocations: 107.6 kB / 414.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002377/0.2534, allocations: 119.7 kB / 414.8 MB, free: 20.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2534, allocations: 0 / 414.8 MB, free: 20.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.577e-05/0.2534, allocations: 5.062 kB / 414.8 MB, free: 20.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.2539, allocations: 84 kB / 414.9 MB, free: 20.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004421/0.2543, allocations: 329.6 kB / 415.2 MB, free: 20.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.2545, allocations: 0.7165 MB / 415.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.986e-05/0.2545, allocations: 19.42 kB / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2546, allocations: 0 / 416 MB, free: 19.27 MB / 298.7 MB Notification: Performance of Templates: time 0.002915/0.2575, allocations: 1.445 MB / 417.4 MB, free: 17.83 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches