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.001624/0.001623, allocations: 186.2 kB / 16.44 MB, free: 5.672 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.983/1.983, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001157/0.001157, allocations: 93.09 kB / 270.9 MB, free: 8.371 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.1005/0.1005, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005462/0.0005461, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08686, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4125/0.4994, allocations: 77.62 MB / 0.5078 GB, free: 12.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.4997, allocations: 80.47 kB / 0.5078 GB, free: 12.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003425/0.5032, allocations: 1.059 MB / 0.5089 GB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5032, allocations: 4 kB / 0.5089 GB, free: 12.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.5032, allocations: 3.938 kB / 0.5089 GB, free: 12.46 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.0003311/0.5036, allocations: 350.1 kB / 0.5092 GB, free: 12.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.5036, allocations: 11.56 kB / 0.5092 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.391e-05/0.5037, allocations: 7.75 kB / 0.5092 GB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.5038, allocations: 184.1 kB / 0.5094 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.5039, allocations: 3.188 kB / 0.5094 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.5039, allocations: 7.797 kB / 0.5094 GB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002422/0.5041, allocations: 96.53 kB / 0.5095 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.5042, allocations: 0 / 0.5095 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.5042, allocations: 7.578 kB / 0.5095 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.5042, allocations: 0 / 0.5095 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.5043, allocations: 18.06 kB / 0.5095 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003213/0.5046, allocations: 267 kB / 0.5098 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.406e-05/0.5047, allocations: 51.28 kB / 0.5098 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.5048, allocations: 0 / 0.5098 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.5048, allocations: 30.56 kB / 0.5099 GB, free: 11.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.353e-06/0.5048, allocations: 3.938 kB / 0.5099 GB, free: 11.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003106/0.5051, allocations: 69.05 kB / 0.5099 GB, free: 11.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.5052, allocations: 85.08 kB / 0.51 GB, free: 11.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.5053, allocations: 131.8 kB / 0.5102 GB, free: 11.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.022e-05/0.5053, allocations: 25.7 kB / 0.5102 GB, free: 11.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.804e-05/0.5054, allocations: 150.6 kB / 0.5103 GB, free: 11.03 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.074e-05/0.5054, allocations: 3.938 kB / 0.5103 GB, free: 11.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-06/0.5054, allocations: 0 / 0.5103 GB, free: 11.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.448e-05/0.5055, allocations: 318.1 kB / 0.5106 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.875e-05/0.5055, allocations: 10.28 kB / 0.5106 GB, free: 10.71 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.789e-05/0.5056, allocations: 19.89 kB / 0.5107 GB, free: 10.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.943e-05/0.5057, allocations: 11.22 kB / 0.5107 GB, free: 10.69 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5057, allocations: 6.297 kB / 0.5107 GB, free: 10.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001493/0.5059, allocations: 61.7 kB / 0.5107 GB, free: 10.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.5059, allocations: 3.969 kB / 0.5107 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.5059, allocations: 0 / 0.5107 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.5059, allocations: 0 / 0.5107 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.847e-05/0.506, allocations: 7.719 kB / 0.5107 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.506, allocations: 0 / 0.5107 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.688e-05/0.5061, allocations: 10.86 kB / 0.5108 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.5061, allocations: 0 / 0.5108 GB, free: 10.64 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 7.46e-05/0.5062, allocations: 121.5 kB / 0.5109 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.518e-05/0.5063, allocations: 48.25 kB / 0.5109 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.5063, allocations: 11.69 kB / 0.5109 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.5063, allocations: 0 / 0.5109 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5063, allocations: 0.5 kB / 0.5109 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.5064, allocations: 6.609 kB / 0.5109 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.5065, allocations: 163.2 kB / 0.5111 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.5065, allocations: 0 / 0.5111 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.388e-05/0.5066, allocations: 15.86 kB / 0.5111 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.5066, allocations: 0 / 0.5111 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.5066, allocations: 3.812 kB / 0.5111 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5067, allocations: 0 / 0.5111 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.5067, allocations: 2.625 kB / 0.5111 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001873/0.5069, allocations: 178.1 kB / 0.5113 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.5069, allocations: 91.34 kB / 0.5114 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.507, allocations: 7.75 kB / 0.5114 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.154e-05/0.507, allocations: 3.875 kB / 0.5114 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.138e-05/0.5071, allocations: 0 / 0.5114 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.5071, allocations: 3.188 kB / 0.5114 GB, free: 10.01 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.664e-05/0.5072, allocations: 101.2 kB / 0.5115 GB, free: 9.934 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5072, allocations: 0 / 0.5115 GB, free: 9.934 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002629/0.5075, allocations: 7.844 kB / 0.5115 GB, free: 9.93 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 8.709e-05/0.5076, allocations: 93.67 kB / 0.5116 GB, free: 9.844 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001591/0.5077, allocations: 21.89 kB / 0.5116 GB, free: 9.844 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5077, allocations: 0 / 0.5116 GB, free: 9.844 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.014e-05/0.5078, allocations: 14.67 kB / 0.5116 GB, free: 9.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.5081, allocations: 15.44 kB / 0.5116 GB, free: 9.836 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003256/0.5084, allocations: 184.6 kB / 0.5118 GB, free: 9.664 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.5086, allocations: 0.689 MB / 0.5125 GB, free: 8.969 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.5086, allocations: 7.531 kB / 0.5125 GB, free: 8.961 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5086, allocations: 4 kB / 0.5125 GB, free: 8.957 MB / 330.7 MB Notification: Performance of Templates: time 0.002166/0.5108, allocations: 0.6165 MB / 0.5131 GB, free: 8.715 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