Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0009271/0.0009274, allocations: 182 kB / 13.23 MB, free: 2.086 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.526/1.526, allocations: 205.2 MB / 219 MB, free: 9.203 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.0009406/0.0009406, allocations: 100.5 kB / 267.1 MB, free: 9.273 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.07977/0.07977, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.066e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 50.37 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4098/0.5178, allocations: 77.53 MB / 0.5019 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.5181, allocations: 77.84 kB / 0.5019 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002275/0.5203, allocations: 1.066 MB / 0.503 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5204, allocations: 0 / 0.503 GB, free: 11.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.5204, allocations: 4 kB / 0.503 GB, free: 11.58 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.0002566/0.5207, allocations: 338.2 kB / 0.5033 GB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.5207, allocations: 11.31 kB / 0.5033 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.211e-05/0.5207, allocations: 3.906 kB / 0.5033 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.5209, allocations: 185 kB / 0.5035 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.5209, allocations: 3.938 kB / 0.5035 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-06/0.5209, allocations: 3.953 kB / 0.5035 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001797/0.5211, allocations: 87.45 kB / 0.5036 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.5211, allocations: 0 / 0.5036 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.5212, allocations: 3.875 kB / 0.5036 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.5212, allocations: 0 / 0.5036 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.878e-05/0.5212, allocations: 11.66 kB / 0.5036 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000276/0.5215, allocations: 269.5 kB / 0.5038 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.909e-05/0.5215, allocations: 36.62 kB / 0.5039 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.42e-05/0.5216, allocations: 19.92 kB / 0.5039 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.5216, allocations: 0 / 0.5039 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.5216, allocations: 34.56 kB / 0.5039 GB, free: 10.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.5216, allocations: 0 / 0.5039 GB, free: 10.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001362/0.5218, allocations: 50.5 kB / 0.504 GB, free: 10.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.5218, allocations: 77.11 kB / 0.5041 GB, free: 10.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.5219, allocations: 125.6 kB / 0.5042 GB, free: 10.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.793e-06/0.5219, allocations: 25.7 kB / 0.5042 GB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.746e-05/0.5219, allocations: 87.27 kB / 0.5043 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.183e-06/0.522, allocations: 4.062 kB / 0.5043 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.522, allocations: 3.75 kB / 0.5043 GB, free: 10.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.89e-05/0.522, allocations: 316.9 kB / 0.5046 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.522, allocations: 0 / 0.5046 GB, free: 9.898 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.208e-05/0.5221, allocations: 17.25 kB / 0.5046 GB, free: 9.883 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.703e-05/0.5221, allocations: 8.891 kB / 0.5046 GB, free: 9.879 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.5221, allocations: 4.062 kB / 0.5046 GB, free: 9.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.388e-05/0.5221, allocations: 50.84 kB / 0.5047 GB, free: 9.836 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.5222, allocations: 3.875 kB / 0.5047 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5222, allocations: 0 / 0.5047 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.5222, allocations: 0 / 0.5047 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.358e-05/0.5223, allocations: 13.69 kB / 0.5047 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.944e-06/0.5223, allocations: 0 / 0.5047 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.693e-05/0.5223, allocations: 3.656 kB / 0.5047 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.5223, allocations: 0 / 0.5047 GB, free: 9.832 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 () * 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 5.19e-05/0.5224, allocations: 120.9 kB / 0.5048 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.5224, allocations: 37.3 kB / 0.5048 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.5225, allocations: 9.859 kB / 0.5049 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.5225, allocations: 0 / 0.5049 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.5225, allocations: 0 / 0.5049 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.5225, allocations: 3.844 kB / 0.5049 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.5227, allocations: 163.3 kB / 0.505 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.5227, allocations: 3.953 kB / 0.505 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.92e-05/0.5227, allocations: 10.25 kB / 0.505 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.5227, allocations: 3.969 kB / 0.505 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.5227, allocations: 0 / 0.505 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5228, allocations: 4 kB / 0.505 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5228, allocations: 0 / 0.505 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.735e-05/0.5229, allocations: 166.7 kB / 0.5052 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.5229, allocations: 92.97 kB / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.5229, allocations: 3.875 kB / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.801e-05/0.523, allocations: 1.969 kB / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.894e-05/0.523, allocations: 7.781 kB / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.523, allocations: 0 / 0.5053 GB, free: 9.211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.003e-05/0.5231, allocations: 106.6 kB / 0.5054 GB, free: 9.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5231, allocations: 0 / 0.5054 GB, free: 9.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000202/0.5233, allocations: 3.844 kB / 0.5054 GB, free: 9.137 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 () * 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 8.778e-05/0.5234, allocations: 96.47 kB / 0.5055 GB, free: 9.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.086e-05/0.5235, allocations: 14.72 kB / 0.5055 GB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5235, allocations: 0 / 0.5055 GB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.166e-05/0.5235, allocations: 7.781 kB / 0.5055 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.5237, allocations: 22.39 kB / 0.5055 GB, free: 9.027 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001927/0.5239, allocations: 91.41 kB / 0.5056 GB, free: 8.945 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.5241, allocations: 0.6937 MB / 0.5063 GB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.378e-05/0.5241, allocations: 0 / 0.5063 GB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.08e-05/0.5241, allocations: 7.438 kB / 0.5063 GB, free: 8.238 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5241, allocations: 0 / 0.5063 GB, free: 8.238 MB / 330.7 MB Notification: Performance of Templates: time 0.002185/0.5263, allocations: 401.1 kB / 0.5067 GB, free: 8.176 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches