Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00274/0.00274, allocations: 186.8 kB / 13.7 MB, free: 1.625 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.133/2.133, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001127/0.001126, allocations: 90.64 kB / 267.5 MB, free: 14.11 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.1044/0.1044, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.385e-05/4.407e-05, allocations: 4 kB / 386 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3148, allocations: 50.36 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.4568, allocations: 77.67 MB / 0.502 GB, free: 388 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.4571, allocations: 75.95 kB / 0.502 GB, free: 312 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004448/0.4616, allocations: 1.109 MB / 0.5031 GB, free: 15.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4616, allocations: 0 / 0.5031 GB, free: 15.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.4617, allocations: 0 / 0.5031 GB, free: 15.19 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004513/0.4621, allocations: 358.3 kB / 0.5035 GB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.4622, allocations: 8.031 kB / 0.5035 GB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.719e-05/0.4623, allocations: 11.89 kB / 0.5035 GB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.4625, allocations: 178.9 kB / 0.5036 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.4626, allocations: 4 kB / 0.5036 GB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.138e-05/0.4626, allocations: 11.95 kB / 0.5037 GB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003513/0.463, allocations: 105 kB / 0.5038 GB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.463, allocations: 3.938 kB / 0.5038 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.463, allocations: 0 / 0.5038 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.463, allocations: 3.938 kB / 0.5038 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.034e-05/0.4631, allocations: 12 kB / 0.5038 GB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004769/0.4636, allocations: 269.8 kB / 0.504 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.4638, allocations: 134.3 kB / 0.5042 GB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.243e-05/0.4639, allocations: 25.78 kB / 0.5042 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.4639, allocations: 0 / 0.5042 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.464, allocations: 30.56 kB / 0.5042 GB, free: 13.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 2.345e-06/0.464, allocations: 4 kB / 0.5042 GB, free: 13.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002076/0.4642, allocations: 57.53 kB / 0.5043 GB, free: 13.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.4643, allocations: 81.11 kB / 0.5044 GB, free: 13.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.4645, allocations: 122.8 kB / 0.5045 GB, free: 13.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.4645, allocations: 29.7 kB / 0.5045 GB, free: 13.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.494e-05/0.4646, allocations: 154.5 kB / 0.5046 GB, free: 13.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.4646, allocations: 3.938 kB / 0.5046 GB, free: 13.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.572e-06/0.4646, allocations: 7.938 kB / 0.5047 GB, free: 13.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4648, allocations: 318.8 kB / 0.505 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.888e-05/0.4648, allocations: 0 / 0.505 GB, free: 13.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.448e-05/0.4649, allocations: 35.44 kB / 0.505 GB, free: 12.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.396e-05/0.4649, allocations: 9.078 kB / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4649, allocations: 0 / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001325/0.4651, allocations: 53.62 kB / 0.5051 GB, free: 12.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4651, allocations: 4 kB / 0.5051 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4651, allocations: 128 / 0.5051 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.4651, allocations: 8 kB / 0.5051 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.4653, allocations: 15.92 kB / 0.5051 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.4653, allocations: 0 / 0.5051 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.396e-05/0.4654, allocations: 8 kB / 0.5051 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.4654, allocations: 4 kB / 0.5051 GB, free: 12.89 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.689e-05/0.4655, allocations: 112.7 kB / 0.5052 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.4656, allocations: 53.72 kB / 0.5053 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.485e-05/0.4657, allocations: 16.03 kB / 0.5053 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.4657, allocations: 0 / 0.5053 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.4657, allocations: 0 / 0.5053 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4657, allocations: 3.938 kB / 0.5053 GB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.466, allocations: 165.7 kB / 0.5054 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.466, allocations: 3.953 kB / 0.5054 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.4661, allocations: 11.98 kB / 0.5054 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.4661, allocations: 0 / 0.5054 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.4661, allocations: 4 kB / 0.5054 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.4662, allocations: 4 kB / 0.5055 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.4662, allocations: 0 / 0.5055 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.4664, allocations: 173.9 kB / 0.5056 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-05/0.4665, allocations: 92.94 kB / 0.5057 GB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.4665, allocations: 8 kB / 0.5057 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.582e-05/0.4666, allocations: 0 / 0.5057 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.897e-05/0.4667, allocations: 7.938 kB / 0.5057 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.4667, allocations: 4 kB / 0.5057 GB, free: 12.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000107/0.4668, allocations: 104.5 kB / 0.5058 GB, free: 12.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4668, allocations: 0 / 0.5058 GB, free: 12.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002861/0.4671, allocations: 4 kB / 0.5058 GB, free: 12.03 MB / 362.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: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001282/0.4673, allocations: 95.23 kB / 0.5059 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.4674, allocations: 23.94 kB / 0.5059 GB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4674, allocations: 0 / 0.5059 GB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.777e-05/0.4675, allocations: 4.25 kB / 0.5059 GB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.4678, allocations: 19.98 kB / 0.506 GB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000352/0.4681, allocations: 131.5 kB / 0.5061 GB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.4685, allocations: 0.6926 MB / 0.5068 GB, free: 11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.664e-05/0.4685, allocations: 11.44 kB / 0.5068 GB, free: 10.99 MB / 362.7 MB Notification: Performance of SimCode: time 3.426e-06/0.4685, allocations: 0 / 0.5068 GB, free: 10.99 MB / 362.7 MB Notification: Performance of Templates: time 0.002781/0.4713, allocations: 0.6826 MB / 0.5074 GB, free: 10.31 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches