Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002162/0.002162, allocations: 179.4 kB / 8.407 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.05/2.05, allocations: 205.3 MB / 214.1 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 86.64 kB / 262.1 MB, free: 1.617 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.09743/0.09742, allocations: 12.61 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.461e-05/2.464e-05, allocations: 0 / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3273, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1659/0.4933, allocations: 79.03 MB / 0.4964 GB, free: 3.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.4936, allocations: 83.94 kB / 0.4965 GB, free: 3.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02167/0.5153, allocations: 4.555 MB / 0.5009 GB, free: 14.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5154, allocations: 4 kB / 0.5009 GB, free: 14.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.151e-05/0.5154, allocations: 4 kB / 0.5009 GB, free: 14.62 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008126/0.5162, allocations: 446 kB / 0.5014 GB, free: 14.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.124e-05/0.5163, allocations: 12.03 kB / 0.5014 GB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.023e-05/0.5164, allocations: 15.81 kB / 0.5014 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.5169, allocations: 239.2 kB / 0.5016 GB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.5169, allocations: 8 kB / 0.5016 GB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.517, allocations: 4 kB / 0.5016 GB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002191/0.5172, allocations: 60.17 kB / 0.5017 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007058/0.5179, allocations: 279.4 kB / 0.5019 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.5179, allocations: 0 / 0.5019 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.518, allocations: 0 / 0.5019 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.518, allocations: 0 / 0.5019 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005843/0.5186, allocations: 318.1 kB / 0.5022 GB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004531/0.5191, allocations: 226.2 kB / 0.5025 GB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001883/0.5193, allocations: 82.06 kB / 0.5025 GB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008594/0.5201, allocations: 0.5817 MB / 0.5031 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.5202, allocations: 38.59 kB / 0.5031 GB, free: 12.03 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 2.605e-06/0.5202, allocations: 0 / 0.5031 GB, free: 12.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004813/0.5207, allocations: 137.5 kB / 0.5033 GB, free: 11.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.5208, allocations: 114.8 kB / 0.5034 GB, free: 11.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.5211, allocations: 173.4 kB / 0.5036 GB, free: 11.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.5211, allocations: 25.7 kB / 0.5036 GB, free: 11.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.474e-05/0.5212, allocations: 167 kB / 0.5037 GB, free: 11.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.129e-05/0.5213, allocations: 19.8 kB / 0.5038 GB, free: 11.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.5213, allocations: 3.938 kB / 0.5038 GB, free: 11.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.5214, allocations: 322.8 kB / 0.5041 GB, free: 11.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.152e-05/0.5215, allocations: 28.38 kB / 0.5041 GB, free: 11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/0.5217, allocations: 153.7 kB / 0.5042 GB, free: 10.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.5219, allocations: 59.95 kB / 0.5043 GB, free: 10.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.5219, allocations: 0 / 0.5043 GB, free: 10.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003883/0.5223, allocations: 165.9 kB / 0.5045 GB, free: 10.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.5224, allocations: 11.98 kB / 0.5045 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.5224, allocations: 7.984 kB / 0.5045 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.5224, allocations: 8 kB / 0.5045 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.5227, allocations: 43.92 kB / 0.5045 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.5228, allocations: 15.89 kB / 0.5045 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.523, allocations: 19.97 kB / 0.5046 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.523, allocations: 8 kB / 0.5046 GB, free: 10.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 0.0001474/0.5232, allocations: 120.9 kB / 0.5047 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003575/0.5235, allocations: 133.3 kB / 0.5048 GB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004316/0.524, allocations: 148.3 kB / 0.505 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.524, allocations: 0 / 0.505 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.524, allocations: 8 kB / 0.505 GB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.524, allocations: 11.88 kB / 0.505 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/0.5243, allocations: 198 kB / 0.5052 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.5243, allocations: 0 / 0.5052 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.5246, allocations: 39.97 kB / 0.5052 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.5246, allocations: 0 / 0.5052 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.5247, allocations: 0 / 0.5052 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.5247, allocations: 4 kB / 0.5052 GB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.5247, allocations: 0 / 0.5052 GB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.5251, allocations: 268.1 kB / 0.5055 GB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.5253, allocations: 124.8 kB / 0.5056 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.589e-05/0.5254, allocations: 0 / 0.5056 GB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.5256, allocations: 15.98 kB / 0.5056 GB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.5e-05/0.5256, allocations: 0 / 0.5056 GB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.366e-05/0.5257, allocations: 11.98 kB / 0.5056 GB, free: 9.293 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001887/0.5259, allocations: 131.2 kB / 0.5057 GB, free: 9.164 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5259, allocations: 0 / 0.5057 GB, free: 9.164 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004748/0.5264, allocations: 31.94 kB / 0.5058 GB, free: 9.133 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: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002217/0.5266, allocations: 107.2 kB / 0.5059 GB, free: 9.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.527, allocations: 115.8 kB / 0.506 GB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.527, allocations: 0 / 0.506 GB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.386e-05/0.527, allocations: 4 kB / 0.506 GB, free: 8.902 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006684/0.5277, allocations: 126.9 kB / 0.5061 GB, free: 8.773 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007259/0.5285, allocations: 243.8 kB / 0.5063 GB, free: 8.496 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.5289, allocations: 0.7399 MB / 0.507 GB, free: 7.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.529, allocations: 15.44 kB / 0.5071 GB, free: 7.715 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.529, allocations: 0 / 0.5071 GB, free: 7.715 MB / 362.7 MB Notification: Performance of Templates: time 0.006197/0.5352, allocations: 2.153 MB / 0.5092 GB, free: 5.562 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches