Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 175.4 kB / 16.77 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.0006988/0.000699, allocations: 90.41 kB / 271.3 MB, free: 8.23 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.07281/0.07281, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004142, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09028, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001437/0.09177, allocations: 1.207 MB / 444.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002972/0.09208, allocations: 127.7 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.456e-05/0.09217, allocations: 4 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.271e-05/0.09221, allocations: 0 / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.09234, allocations: 3.938 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.09257, allocations: 31.91 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.275e-05/0.09265, allocations: 23.92 kB / 444.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.09276, allocations: 19.98 kB / 444.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.587e-05/0.09279, allocations: 3.938 kB / 444.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.153e-05/0.09283, allocations: 15.92 kB / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.09286, allocations: 4 kB / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.09287, allocations: 0 / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.395e-05/0.09291, allocations: 11.92 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.914e-05/0.09295, allocations: 41.58 kB / 444.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.395e-05/0.09302, allocations: 23.95 kB / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.09303, allocations: 0 / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.09304, allocations: 0 / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.09305, allocations: 0 / 444.5 MB, free: 14.59 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.0004265/0.09348, allocations: 359.6 kB / 444.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.09353, allocations: 8.031 kB / 444.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.09357, allocations: 8.844 kB / 444.8 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.09374, allocations: 188.1 kB / 445 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.09376, allocations: 4.375 kB / 445 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.09378, allocations: 4.375 kB / 445 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.09402, allocations: 89.61 kB / 445.1 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.09404, allocations: 192 / 445.1 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.09406, allocations: 7.938 kB / 445.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.09407, allocations: 0 / 445.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.058e-05/0.09415, allocations: 23.92 kB / 445.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002632/0.09442, allocations: 253.8 kB / 445.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.926e-05/0.0945, allocations: 53.08 kB / 445.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.096e-05/0.09455, allocations: 17.78 kB / 445.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.09458, allocations: 4 kB / 445.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.0946, allocations: 38.55 kB / 445.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.09461, allocations: 0 / 445.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002197/0.09483, allocations: 69.75 kB / 445.6 MB, free: 13.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.09488, allocations: 81.14 kB / 445.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.566e-05/0.09499, allocations: 138 kB / 445.8 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.866e-06/0.095, allocations: 25.7 kB / 445.8 MB, free: 13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.09504, allocations: 92.08 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.483e-06/0.09505, allocations: 0 / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.09506, allocations: 0 / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.09514, allocations: 314.8 kB / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.74e-05/0.09519, allocations: 15.98 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.186e-05/0.09523, allocations: 21.72 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.831e-05/0.09529, allocations: 25.7 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.0953, allocations: 4.062 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.192e-05/0.0954, allocations: 69.41 kB / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.09542, allocations: 7.984 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.09543, allocations: 0 / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.09545, allocations: 0 / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.396e-05/0.09552, allocations: 8 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.09553, allocations: 0 / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.898e-05/0.09556, allocations: 8.062 kB / 446.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.09557, allocations: 0 / 446.4 MB, free: 12.42 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: 2 (step.y,sample.y) * 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 6.214e-05/0.09564, allocations: 126.4 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.734e-05/0.09569, allocations: 41.64 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.09573, allocations: 7.828 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.09573, allocations: 4 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.09574, allocations: 3.984 kB / 446.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.09575, allocations: 3.984 kB / 446.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.09587, allocations: 173.5 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.09588, allocations: 4 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.662e-05/0.09592, allocations: 11.98 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.09593, allocations: 0 / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.09594, allocations: 4 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.09594, allocations: 0 / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.09595, allocations: 0 / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001096/0.09606, allocations: 164.3 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.09611, allocations: 93 kB / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.09613, allocations: 0 / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.515e-05/0.09619, allocations: 4 kB / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.09622, allocations: 3.984 kB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-06/0.09623, allocations: 0 / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.494e-05/0.09628, allocations: 103.3 kB / 447.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09629, allocations: 4.031 kB / 447.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00021/0.0965, allocations: 4 kB / 447.1 MB, free: 11.57 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: 2 (step.y,sample.y) * 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 6.914e-05/0.09658, allocations: 91.25 kB / 447.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.09669, allocations: 27.92 kB / 447.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.0967, allocations: 0 / 447.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.226e-05/0.09674, allocations: 16.11 kB / 447.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.09707, allocations: 15.97 kB / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000258/0.09733, allocations: 183.1 kB / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.09747, allocations: 0.685 MB / 448.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.987e-05/0.0975, allocations: 11.44 kB / 448.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.09751, allocations: 0 / 448.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of Templates: time 0.001683/0.09919, allocations: 0.6178 MB / 448.8 MB, free: 9.859 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches