Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002294/0.002294, allocations: 178.4 kB / 8.405 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.159/2.159, allocations: 205.3 MB / 214.1 MB, free: 1.742 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.001092/0.001092, allocations: 94.22 kB / 262.2 MB, free: 1.68 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.1188/0.1188, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.865e-05/1.863e-05, allocations: 0 / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4124/0.4124, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1673/0.5798, allocations: 77.58 MB / 0.495 GB, free: 4.727 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.5801, allocations: 79.95 kB / 0.4951 GB, free: 4.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008385/0.5885, allocations: 1.965 MB / 0.497 GB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5886, allocations: 4 kB / 0.497 GB, free: 2.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.5886, allocations: 0 / 0.497 GB, free: 2.68 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004406/0.589, allocations: 350.4 kB / 0.4973 GB, free: 2.293 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.5891, allocations: 12.03 kB / 0.4973 GB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.837e-05/0.5892, allocations: 7.906 kB / 0.4973 GB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.5894, allocations: 191.3 kB / 0.4975 GB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.5895, allocations: 3.938 kB / 0.4975 GB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.5895, allocations: 4 kB / 0.4975 GB, free: 2.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001117/0.5896, allocations: 19.98 kB / 0.4975 GB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.5899, allocations: 101 kB / 0.4976 GB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.5899, allocations: 4 kB / 0.4976 GB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.5899, allocations: 0 / 0.4976 GB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.59, allocations: 0 / 0.4976 GB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004228/0.5904, allocations: 250.2 kB / 0.4979 GB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.623e-05/0.5905, allocations: 41.16 kB / 0.4979 GB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.5e-05/0.5905, allocations: 13.78 kB / 0.4979 GB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.5906, allocations: 0 / 0.4979 GB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.5906, allocations: 38.56 kB / 0.498 GB, free: 1.488 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/0.5906, allocations: 0 / 0.498 GB, free: 1.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001961/0.5908, allocations: 45.62 kB / 0.498 GB, free: 1.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.5909, allocations: 81.11 kB / 0.4981 GB, free: 1.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.5911, allocations: 120.2 kB / 0.4982 GB, free: 1.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.5911, allocations: 25.7 kB / 0.4982 GB, free: 1.184 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.757e-05/0.5912, allocations: 162.5 kB / 0.4984 GB, free: 1.023 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.5912, allocations: 4 kB / 0.4984 GB, free: 1.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-06/0.5913, allocations: 0 / 0.4984 GB, free: 1.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.5915, allocations: 318.8 kB / 0.4987 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.152e-05/0.5915, allocations: 4 kB / 0.4987 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.35e-05/0.5916, allocations: 13.72 kB / 0.4987 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.181e-05/0.5916, allocations: 4 kB / 0.4987 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5916, allocations: 8 kB / 0.4987 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001128/0.5917, allocations: 45.62 kB / 0.4988 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.5918, allocations: 8 kB / 0.4988 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.5918, allocations: 0 / 0.4988 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.5918, allocations: 0 / 0.4988 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.5919, allocations: 4 kB / 0.4988 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.5919, allocations: 0 / 0.4988 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.191e-05/0.592, allocations: 9.219 kB / 0.4988 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.592, allocations: 7.984 kB / 0.4988 GB, free: 0.5859 MB / 346.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: 0 () * 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 8.865e-05/0.5921, allocations: 109 kB / 0.4989 GB, free: 484 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.16e-05/0.5922, allocations: 41.55 kB / 0.4989 GB, free: 436 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.811e-05/0.5923, allocations: 11.95 kB / 0.4989 GB, free: 424 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.5923, allocations: 0 / 0.4989 GB, free: 424 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.5923, allocations: 4 kB / 0.499 GB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.5923, allocations: 0 / 0.499 GB, free: 420 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.5925, allocations: 146.2 kB / 0.4991 GB, free: 236 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.5926, allocations: 3.953 kB / 0.4991 GB, free: 232 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.524e-05/0.5927, allocations: 16.02 kB / 0.4991 GB, free: 216 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.5927, allocations: 3.938 kB / 0.4991 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.5927, allocations: 0 / 0.4991 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.5927, allocations: 4 kB / 0.4991 GB, free: 208 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5927, allocations: 0 / 0.4991 GB, free: 208 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/0.5929, allocations: 162 kB / 0.4993 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.593, allocations: 97.03 kB / 0.4994 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.593, allocations: 0 / 0.4994 GB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.5932, allocations: 4 kB / 0.4994 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.5932, allocations: 3.938 kB / 0.4994 GB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.5932, allocations: 0 / 0.4994 GB, free: 15.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.687e-05/0.5933, allocations: 104 kB / 0.4995 GB, free: 15.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5933, allocations: 0 / 0.4995 GB, free: 15.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003042/0.5937, allocations: 4 kB / 0.4995 GB, free: 15.79 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: 0 () * 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 0.0001299/0.5938, allocations: 99.23 kB / 0.4996 GB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.412e-05/0.5939, allocations: 12 kB / 0.4996 GB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5939, allocations: 0 / 0.4996 GB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.423e-05/0.594, allocations: 4 kB / 0.4996 GB, free: 15.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.5943, allocations: 31.22 kB / 0.4996 GB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003194/0.5946, allocations: 110.6 kB / 0.4997 GB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.595, allocations: 0.7004 MB / 0.5004 GB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.638e-05/0.595, allocations: 11.44 kB / 0.5004 GB, free: 14.76 MB / 362.7 MB Notification: Performance of SimCode: time 7.12e-07/0.595, allocations: 0 / 0.5004 GB, free: 14.76 MB / 362.7 MB Notification: Performance of Templates: time 0.006864/0.6019, allocations: 0.6944 MB / 0.5011 GB, free: 14.07 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches