Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002894/0.0029, allocations: 181.6 kB / 16.45 MB, free: 5.711 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.015/4.015, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001942/0.001942, allocations: 90 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2054/0.2054, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.234, allocations: 50.37 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.004414/0.2385, allocations: 1.239 MB / 443.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.2402, allocations: 484.8 kB / 444.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.2405, allocations: 3.938 kB / 444.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.556e-05/0.2405, allocations: 7.922 kB / 444.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.2407, allocations: 7.984 kB / 444.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004415/0.2412, allocations: 31.91 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.2413, allocations: 27.95 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.2415, allocations: 11.98 kB / 444.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.2417, allocations: 19.88 kB / 444.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.944e-05/0.2418, allocations: 19.86 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.383e-05/0.2418, allocations: 0 / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.179e-05/0.2419, allocations: 4 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.999e-05/0.2419, allocations: 7.984 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.166e-05/0.242, allocations: 33.64 kB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.2421, allocations: 27.95 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2422, allocations: 4 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.809e-06/0.2422, allocations: 7.984 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2422, allocations: 0 / 444.3 MB, free: 14.53 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006634/0.2429, allocations: 355.3 kB / 444.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.209e-05/0.243, allocations: 12.03 kB / 444.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.371e-05/0.243, allocations: 7.891 kB / 444.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.2433, allocations: 186.9 kB / 444.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.2434, allocations: 4 kB / 444.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.828e-05/0.2434, allocations: 3.938 kB / 444.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000404/0.2438, allocations: 89.11 kB / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.2439, allocations: 0 / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.2439, allocations: 0 / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.2439, allocations: 0 / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.2441, allocations: 35.86 kB / 445 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004791/0.2446, allocations: 261.8 kB / 445.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.2448, allocations: 49.14 kB / 445.3 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.2448, allocations: 4 kB / 445.3 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.2449, allocations: 30.56 kB / 445.3 MB, free: 13.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 2.444e-06/0.2449, allocations: 64 / 445.3 MB, free: 13.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0004691/0.2454, allocations: 73.52 kB / 445.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.777e-05/0.2455, allocations: 85.36 kB / 445.5 MB, free: 13.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.2457, allocations: 132 kB / 445.6 MB, free: 13.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.2458, allocations: 33.7 kB / 445.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.334e-05/0.2459, allocations: 150.6 kB / 445.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.078e-05/0.2459, allocations: 3.938 kB / 445.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-06/0.246, allocations: 0 / 445.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.2461, allocations: 326.7 kB / 446.1 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.2462, allocations: 8 kB / 446.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.2463, allocations: 25.7 kB / 446.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.2465, allocations: 15.94 kB / 446.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.2465, allocations: 0 / 446.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003505/0.2469, allocations: 69.58 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.2469, allocations: 4 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.2469, allocations: 3.984 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.247, allocations: 0 / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.2472, allocations: 8 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.2472, allocations: 0 / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.2473, allocations: 4 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.2473, allocations: 0 / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001487/0.2475, allocations: 129.6 kB / 446.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.2477, allocations: 33.7 kB / 446.4 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.453e-05/0.2478, allocations: 19.81 kB / 446.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2478, allocations: 4 kB / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.2478, allocations: 0 / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2478, allocations: 0 / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.2481, allocations: 165.6 kB / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.2481, allocations: 0 / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.2483, allocations: 11.94 kB / 446.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.2483, allocations: 0 / 446.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.2483, allocations: 7.969 kB / 446.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2483, allocations: 0 / 446.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.2483, allocations: 4 kB / 446.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003072/0.2487, allocations: 178 kB / 446.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.689e-05/0.2488, allocations: 93 kB / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.2488, allocations: 4 kB / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.249, allocations: 0 / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.2491, allocations: 7.984 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-06/0.2491, allocations: 0 / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001146/0.2492, allocations: 105.8 kB / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2492, allocations: 3.938 kB / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005663/0.2498, allocations: 4 kB / 447 MB, free: 11.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001396/0.25, allocations: 95.28 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.2503, allocations: 27.97 kB / 447.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.2503, allocations: 0 / 447.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.2504, allocations: 12 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.251, allocations: 28.14 kB / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005966/0.2516, allocations: 207 kB / 447.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.2518, allocations: 0.6887 MB / 448 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.042e-05/0.2519, allocations: 7.438 kB / 448 MB, free: 10.35 MB / 298.7 MB Notification: Performance of SimCode: time 2.324e-06/0.2519, allocations: 4 kB / 448 MB, free: 10.35 MB / 298.7 MB Notification: Performance of Templates: time 0.003722/0.2557, allocations: 0.6688 MB / 448.7 MB, free: 9.68 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches