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/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/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.001765/0.001765, allocations: 182 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.692/2.692, allocations: 205.4 MB / 223.6 MB, free: 8.938 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.001074/0.001073, allocations: 90.02 kB / 272 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1582/0.1582, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000807/0.0008073, allocations: 23.98 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1578, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6632/0.821, allocations: 77.6 MB / 0.5084 GB, free: 13.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003396/0.8214, allocations: 75.09 kB / 0.5085 GB, free: 13.1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004912/0.8264, allocations: 1.628 MB / 0.5101 GB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.758e-06/0.8264, allocations: 0 / 0.5101 GB, free: 12.71 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.8264, allocations: 0 / 0.5101 GB, free: 12.71 MB / 330.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.0006082/0.827, allocations: 359 kB / 0.5104 GB, free: 12.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/0.8271, allocations: 7.75 kB / 0.5104 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.181e-05/0.8272, allocations: 8.688 kB / 0.5104 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.8275, allocations: 198.7 kB / 0.5106 GB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.8275, allocations: 4.375 kB / 0.5106 GB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.8275, allocations: 4.188 kB / 0.5106 GB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/0.8279, allocations: 97.62 kB / 0.5107 GB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.828, allocations: 4.031 kB / 0.5107 GB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.828, allocations: 7.938 kB / 0.5107 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.828, allocations: 0 / 0.5107 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.887e-05/0.8281, allocations: 18.16 kB / 0.5108 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000491/0.8286, allocations: 258.9 kB / 0.511 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.8287, allocations: 62.64 kB / 0.5111 GB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.319e-05/0.8288, allocations: 20.34 kB / 0.5111 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.8288, allocations: 0 / 0.5111 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.8289, allocations: 37.88 kB / 0.5111 GB, free: 11.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.8289, allocations: 0 / 0.5111 GB, free: 11.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002844/0.8292, allocations: 71.47 kB / 0.5112 GB, free: 11.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.8292, allocations: 77.11 kB / 0.5113 GB, free: 11.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.8294, allocations: 132.6 kB / 0.5114 GB, free: 11.42 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.8294, allocations: 29.95 kB / 0.5114 GB, free: 11.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/0.8295, allocations: 86.56 kB / 0.5115 GB, free: 11.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.231e-05/0.8295, allocations: 0 / 0.5115 GB, free: 11.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-06/0.8295, allocations: 0 / 0.5115 GB, free: 11.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.8297, allocations: 321.5 kB / 0.5118 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.361e-05/0.8298, allocations: 6.5 kB / 0.5118 GB, free: 10.99 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.748e-05/0.8298, allocations: 26.59 kB / 0.5118 GB, free: 10.97 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.602e-05/0.8299, allocations: 29.58 kB / 0.5119 GB, free: 10.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.8299, allocations: 0 / 0.5119 GB, free: 10.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000109/0.83, allocations: 62 kB / 0.5119 GB, free: 10.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.8301, allocations: 7.812 kB / 0.5119 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.485e-06/0.8301, allocations: 3.938 kB / 0.5119 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.8301, allocations: 3.812 kB / 0.5119 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.969e-05/0.8302, allocations: 6.578 kB / 0.5119 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.8302, allocations: 0 / 0.5119 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.908e-05/0.8302, allocations: 7.75 kB / 0.512 GB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.8302, allocations: 0 / 0.512 GB, free: 10.9 MB / 330.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 (sample.u,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 8.266e-05/0.8303, allocations: 129.9 kB / 0.5121 GB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/0.8304, allocations: 37.52 kB / 0.5121 GB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.388e-05/0.8304, allocations: 10.97 kB / 0.5121 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.8305, allocations: 0 / 0.5121 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.8305, allocations: 0 / 0.5121 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.8305, allocations: 3.969 kB / 0.5121 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.8307, allocations: 168.3 kB / 0.5123 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.8307, allocations: 0 / 0.5123 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.8307, allocations: 3.969 kB / 0.5123 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.8307, allocations: 0 / 0.5123 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.8307, allocations: 7.875 kB / 0.5123 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.8308, allocations: 3.984 kB / 0.5123 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8308, allocations: 0 / 0.5123 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001975/0.831, allocations: 161.1 kB / 0.5125 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.473e-05/0.831, allocations: 96.66 kB / 0.5125 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.8311, allocations: 8.031 kB / 0.5126 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.346e-05/0.8311, allocations: 3.188 kB / 0.5126 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.8312, allocations: 3.938 kB / 0.5126 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.8312, allocations: 3.984 kB / 0.5126 GB, free: 10.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.47e-05/0.8313, allocations: 107.7 kB / 0.5127 GB, free: 10.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.8313, allocations: 0 / 0.5127 GB, free: 10.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002425/0.8315, allocations: 3.781 kB / 0.5127 GB, free: 10.18 MB / 330.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 (sample.u,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 0.0001333/0.8317, allocations: 92.09 kB / 0.5128 GB, free: 10.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.8318, allocations: 30.77 kB / 0.5128 GB, free: 10.08 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.8318, allocations: 3.938 kB / 0.5128 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.659e-05/0.8319, allocations: 11.8 kB / 0.5128 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.8323, allocations: 16.03 kB / 0.5128 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.8327, allocations: 181.8 kB / 0.513 GB, free: 9.891 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.8329, allocations: 0.6843 MB / 0.5137 GB, free: 9.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.76e-05/0.833, allocations: 7.438 kB / 0.5137 GB, free: 9.184 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.833, allocations: 0 / 0.5137 GB, free: 9.184 MB / 330.7 MB Notification: Performance of Templates: time 0.002806/0.8358, allocations: 0.6232 MB / 0.5143 GB, free: 8.879 MB / 330.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/jenkins1/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