Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001349/0.001349, allocations: 182.3 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.505/1.505, allocations: 205.2 MB / 219 MB, free: 9.145 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.0009307/0.000931, allocations: 86.66 kB / 267.1 MB, free: 9.27 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.08916/0.08916, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.763e-05/2.765e-05, allocations: 4 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 50.38 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4261/0.5365, allocations: 77.65 MB / 0.502 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.5368, allocations: 80.52 kB / 0.5021 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002651/0.5395, allocations: 1.11 MB / 0.5031 GB, free: 11.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5395, allocations: 0 / 0.5031 GB, free: 11.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.5395, allocations: 7.844 kB / 0.5031 GB, free: 11.54 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002699/0.5398, allocations: 344.9 kB / 0.5035 GB, free: 11.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.5398, allocations: 7.656 kB / 0.5035 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.5399, allocations: 10.25 kB / 0.5035 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.54, allocations: 184.3 kB / 0.5037 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.54, allocations: 3.438 kB / 0.5037 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.5401, allocations: 10.38 kB / 0.5037 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.5403, allocations: 109.8 kB / 0.5038 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.5403, allocations: 0 / 0.5038 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.5403, allocations: 0 / 0.5038 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.5403, allocations: 0 / 0.5038 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.493e-05/0.5404, allocations: 12.64 kB / 0.5038 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003038/0.5407, allocations: 274.9 kB / 0.5041 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.5409, allocations: 130.3 kB / 0.5042 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.676e-05/0.5409, allocations: 29.52 kB / 0.5042 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.541, allocations: 4 kB / 0.5042 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.541, allocations: 34.5 kB / 0.5042 GB, free: 10.42 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.541, allocations: 0 / 0.5042 GB, free: 10.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001647/0.5412, allocations: 58.55 kB / 0.5043 GB, free: 10.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.5412, allocations: 84.89 kB / 0.5044 GB, free: 10.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.5413, allocations: 121.3 kB / 0.5045 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.5413, allocations: 29.73 kB / 0.5045 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.444e-05/0.5414, allocations: 91.17 kB / 0.5046 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.114e-05/0.5414, allocations: 6.562 kB / 0.5046 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.5414, allocations: 0 / 0.5046 GB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.5415, allocations: 316.1 kB / 0.5049 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.239e-05/0.5415, allocations: 3.844 kB / 0.5049 GB, free: 9.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.156e-05/0.5415, allocations: 33.5 kB / 0.505 GB, free: 9.715 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.174e-05/0.5416, allocations: 16.48 kB / 0.505 GB, free: 9.707 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.5416, allocations: 0 / 0.505 GB, free: 9.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.738e-05/0.5416, allocations: 55.09 kB / 0.505 GB, free: 9.668 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.5417, allocations: 7.688 kB / 0.505 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.5417, allocations: 0 / 0.505 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.5417, allocations: 0 / 0.505 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.379e-05/0.5418, allocations: 17.92 kB / 0.5051 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.607e-06/0.5418, allocations: 4.656 kB / 0.5051 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.405e-05/0.5418, allocations: 6.281 kB / 0.5051 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.5418, allocations: 0 / 0.5051 GB, free: 9.664 MB / 330.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 4.879e-05/0.5419, allocations: 112.5 kB / 0.5052 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-05/0.5419, allocations: 53.98 kB / 0.5052 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.542, allocations: 4.031 kB / 0.5052 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.542, allocations: 3.844 kB / 0.5052 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.542, allocations: 4 kB / 0.5052 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.542, allocations: 2.625 kB / 0.5052 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.5422, allocations: 169.5 kB / 0.5054 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.5422, allocations: 7.953 kB / 0.5054 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.473e-05/0.5422, allocations: 10.2 kB / 0.5054 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.5422, allocations: 0 / 0.5054 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.5422, allocations: 0 / 0.5054 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.5422, allocations: 3.875 kB / 0.5054 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.5423, allocations: 3.938 kB / 0.5054 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.5424, allocations: 177.1 kB / 0.5056 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.413e-05/0.5424, allocations: 87.83 kB / 0.5057 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.5424, allocations: 3.875 kB / 0.5057 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.053e-05/0.5425, allocations: 7.281 kB / 0.5057 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.5425, allocations: 2.719 kB / 0.5057 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.5426, allocations: 0 / 0.5057 GB, free: 9.039 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.143e-05/0.5426, allocations: 108.5 kB / 0.5058 GB, free: 8.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5426, allocations: 0 / 0.5058 GB, free: 8.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002195/0.5428, allocations: 7.625 kB / 0.5058 GB, free: 8.961 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: 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 7.896e-05/0.5429, allocations: 94.88 kB / 0.5059 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.933e-05/0.543, allocations: 21.75 kB / 0.5059 GB, free: 8.867 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.543, allocations: 0 / 0.5059 GB, free: 8.867 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.21e-05/0.543, allocations: 7.188 kB / 0.5059 GB, free: 8.867 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.5433, allocations: 26.02 kB / 0.5059 GB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001991/0.5435, allocations: 97.92 kB / 0.506 GB, free: 8.773 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.5437, allocations: 0.6909 MB / 0.5067 GB, free: 8.078 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.435e-05/0.5437, allocations: 7.844 kB / 0.5067 GB, free: 8.074 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.164e-05/0.5437, allocations: 7.438 kB / 0.5067 GB, free: 8.07 MB / 330.7 MB Notification: Performance of SimCode: time 2.054e-06/0.5437, allocations: 0 / 0.5067 GB, free: 8.07 MB / 330.7 MB Notification: Performance of Templates: time 0.002364/0.5461, allocations: 456.9 kB / 0.5072 GB, free: 8 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches