Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00286/0.002867, allocations: 189.4 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.857/3.857, allocations: 205.4 MB / 222.6 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001911/0.001911, allocations: 98.84 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1959/0.1959, allocations: 12.6 MB / 331.8 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 15.55 kB / 392 MB, free: 54.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.215, allocations: 50.38 MB / 442.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.003776/0.2188, allocations: 1.427 MB / 443.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006197/0.2251, allocations: 0.5389 MB / 444.3 MB, free: 9.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002597/0.2255, allocations: 7.938 kB / 444.3 MB, free: 9.582 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.02e-05/0.2256, allocations: 3.938 kB / 444.3 MB, free: 9.578 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.2258, allocations: 15.97 kB / 444.3 MB, free: 9.562 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009607/0.2268, allocations: 77.53 kB / 444.4 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.227, allocations: 55.88 kB / 444.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.2272, allocations: 29.09 kB / 444.5 MB, free: 9.406 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.2274, allocations: 31.86 kB / 444.5 MB, free: 9.375 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.2276, allocations: 39.77 kB / 444.6 MB, free: 9.336 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.2277, allocations: 7.938 kB / 444.6 MB, free: 9.328 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.192e-05/0.2277, allocations: 4 kB / 444.6 MB, free: 9.324 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.658e-05/0.2278, allocations: 15.92 kB / 444.6 MB, free: 9.309 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.606e-05/0.2279, allocations: 45.64 kB / 444.6 MB, free: 9.258 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.2281, allocations: 71.86 kB / 444.7 MB, free: 9.188 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2281, allocations: 4 kB / 444.7 MB, free: 9.184 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.2281, allocations: 0 / 444.7 MB, free: 9.184 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2282, allocations: 0 / 444.7 MB, free: 9.184 MB / 282.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.0008953/0.2291, allocations: 403.7 kB / 445.1 MB, free: 8.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.2292, allocations: 8.031 kB / 445.1 MB, free: 8.734 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.2293, allocations: 15.81 kB / 445.1 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.2297, allocations: 206.8 kB / 445.3 MB, free: 8.477 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/0.2297, allocations: 15.94 kB / 445.4 MB, free: 8.461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.074e-05/0.2298, allocations: 8 kB / 445.4 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009894/0.2308, allocations: 285.1 kB / 445.6 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.2309, allocations: 0 / 445.6 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.2309, allocations: 3.938 kB / 445.6 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.2309, allocations: 4 kB / 445.6 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.2313, allocations: 51.97 kB / 445.7 MB, free: 8.094 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005609/0.2319, allocations: 314.4 kB / 446 MB, free: 7.73 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004713/0.2324, allocations: 143.8 kB / 446.1 MB, free: 7.562 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.067e-05/0.2325, allocations: 4.062 kB / 446.1 MB, free: 7.559 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.2325, allocations: 34.56 kB / 446.2 MB, free: 7.516 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 4.578e-06/0.2325, allocations: 0 / 446.2 MB, free: 7.516 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009689/0.2335, allocations: 181.5 kB / 446.4 MB, free: 7.332 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.2337, allocations: 122.7 kB / 446.5 MB, free: 7.188 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.2339, allocations: 150.2 kB / 446.6 MB, free: 7.027 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.234, allocations: 33.7 kB / 446.7 MB, free: 6.988 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.497e-05/0.2341, allocations: 158.5 kB / 446.8 MB, free: 6.832 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.2342, allocations: 19.8 kB / 446.8 MB, free: 6.812 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.2342, allocations: 4 kB / 446.8 MB, free: 6.809 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.2343, allocations: 326.9 kB / 447.2 MB, free: 6.48 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.2345, allocations: 24.36 kB / 447.2 MB, free: 6.457 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.2348, allocations: 135.1 kB / 447.3 MB, free: 6.277 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/0.235, allocations: 47.92 kB / 447.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.235, allocations: 4 kB / 447.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006727/0.2357, allocations: 181.2 kB / 447.5 MB, free: 6.043 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.2358, allocations: 4 kB / 447.5 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.2358, allocations: 4.531 kB / 447.5 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.421e-05/0.2359, allocations: 8 kB / 447.6 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.2362, allocations: 35.92 kB / 447.6 MB, free: 5.992 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.855e-05/0.2362, allocations: 4 kB / 447.6 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.2365, allocations: 16.36 kB / 447.6 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.2365, allocations: 8 kB / 447.6 MB, free: 5.965 MB / 282.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 0.004454/0.241, allocations: 153.3 kB / 447.8 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005318/0.2416, allocations: 117.4 kB / 447.9 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.2417, allocations: 24.7 kB / 447.9 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.2418, allocations: 8 kB / 447.9 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.2418, allocations: 0 / 447.9 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.2418, allocations: 0 / 447.9 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.2422, allocations: 193.6 kB / 448.1 MB, free: 5.414 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.2422, allocations: 3.938 kB / 448.1 MB, free: 5.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.2426, allocations: 27.98 kB / 448.1 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.295e-05/0.2426, allocations: 4 kB / 448.1 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.2427, allocations: 0 / 448.1 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.797e-06/0.2427, allocations: 4 kB / 448.1 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.2427, allocations: 0 / 448.1 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006891/0.2434, allocations: 291.2 kB / 448.4 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.2436, allocations: 104.8 kB / 448.5 MB, free: 4.938 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.816e-05/0.2437, allocations: 4 kB / 448.5 MB, free: 4.934 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.2439, allocations: 11.98 kB / 448.5 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.244, allocations: 0 / 448.5 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.244, allocations: 8 kB / 448.6 MB, free: 4.914 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.2442, allocations: 119.9 kB / 448.7 MB, free: 4.797 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.2442, allocations: 0 / 448.7 MB, free: 4.797 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006672/0.2449, allocations: 19.95 kB / 448.7 MB, free: 4.777 MB / 282.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.0001844/0.2451, allocations: 103.2 kB / 448.8 MB, free: 4.664 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006258/0.2458, allocations: 107.8 kB / 448.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.2458, allocations: 0 / 448.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.2459, allocations: 17.05 kB / 448.9 MB, free: 4.543 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008311/0.2468, allocations: 72.31 kB / 449 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.2479, allocations: 342 kB / 449.3 MB, free: 4.102 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.2482, allocations: 0.7243 MB / 450 MB, free: 3.352 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.2483, allocations: 19.44 kB / 450.1 MB, free: 3.332 MB / 282.7 MB Notification: Performance of SimCode: time 1.704e-06/0.2484, allocations: 0 / 450.1 MB, free: 3.332 MB / 282.7 MB Notification: Performance of Templates: time 0.0149/0.2633, allocations: 1.431 MB / 451.5 MB, free: 1.898 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches