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/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/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.002456/0.002456, allocations: 181.2 kB / 17.46 MB, free: 4.363 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.635/2.635, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.001213/0.001213, allocations: 77.45 kB / 271.9 MB, free: 8.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1452/0.1452, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007621/0.0007623, allocations: 15.98 kB / 392.7 MB, free: 67.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1449, allocations: 50.29 MB / 443 MB, free: 16.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5276/0.6726, allocations: 77.74 MB / 0.5085 GB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003617/0.673, allocations: 77.06 kB / 0.5086 GB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006685/0.6797, allocations: 1.669 MB / 0.5102 GB, free: 12.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.6798, allocations: 0 / 0.5102 GB, free: 12.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.6798, allocations: 4 kB / 0.5103 GB, free: 12.59 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.0004461/0.6803, allocations: 362.7 kB / 0.5106 GB, free: 12.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.6804, allocations: 7.812 kB / 0.5106 GB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.851e-05/0.6804, allocations: 12.72 kB / 0.5106 GB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.6807, allocations: 201.9 kB / 0.5108 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.6807, allocations: 384 / 0.5108 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.6808, allocations: 7.5 kB / 0.5108 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000411/0.6812, allocations: 129.7 kB / 0.5109 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.6812, allocations: 192 / 0.5109 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.6812, allocations: 3.938 kB / 0.5109 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.6812, allocations: 0 / 0.5109 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.6814, allocations: 27.31 kB / 0.511 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004259/0.6818, allocations: 261.4 kB / 0.5112 GB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.6821, allocations: 148.1 kB / 0.5114 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.79e-05/0.6822, allocations: 28.92 kB / 0.5114 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.6823, allocations: 0 / 0.5114 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.6823, allocations: 37.56 kB / 0.5114 GB, free: 11.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 3.136e-06/0.6823, allocations: 0 / 0.5114 GB, free: 11.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003783/0.6827, allocations: 81.55 kB / 0.5115 GB, free: 11.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.6828, allocations: 92.69 kB / 0.5116 GB, free: 11.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.6829, allocations: 127.6 kB / 0.5117 GB, free: 11.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.683, allocations: 25.7 kB / 0.5117 GB, free: 11.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.683, allocations: 91.55 kB / 0.5118 GB, free: 11.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.6831, allocations: 8.031 kB / 0.5118 GB, free: 11.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.6831, allocations: 0 / 0.5118 GB, free: 11.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.311e-05/0.6831, allocations: 321.7 kB / 0.5121 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.152e-05/0.6832, allocations: 7.344 kB / 0.5121 GB, free: 10.71 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.621e-05/0.6833, allocations: 34.92 kB / 0.5122 GB, free: 10.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.6834, allocations: 53.33 kB / 0.5122 GB, free: 10.63 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.6835, allocations: 0 / 0.5122 GB, free: 10.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001997/0.6837, allocations: 76.48 kB / 0.5123 GB, free: 10.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.6837, allocations: 4.875 kB / 0.5123 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.6837, allocations: 0 / 0.5123 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.6838, allocations: 3.844 kB / 0.5123 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.939e-05/0.6839, allocations: 11.91 kB / 0.5123 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.6839, allocations: 0 / 0.5123 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.292e-05/0.684, allocations: 3.844 kB / 0.5123 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.684, allocations: 3.906 kB / 0.5123 GB, free: 10.58 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 () * Number of clocked 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 0.0001027/0.6841, allocations: 132.9 kB / 0.5125 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.6842, allocations: 53.02 kB / 0.5125 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.304e-05/0.6843, allocations: 11.47 kB / 0.5125 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.6843, allocations: 0 / 0.5125 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6843, allocations: 0 / 0.5125 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.6843, allocations: 3.844 kB / 0.5125 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.6845, allocations: 168.3 kB / 0.5127 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.6845, allocations: 0 / 0.5127 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.6847, allocations: 15.8 kB / 0.5127 GB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.6847, allocations: 4 kB / 0.5127 GB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.6847, allocations: 11.69 kB / 0.5127 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.6847, allocations: 0 / 0.5127 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6847, allocations: 0 / 0.5127 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.685, allocations: 172.1 kB / 0.5129 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/0.685, allocations: 96.78 kB / 0.513 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.6851, allocations: 0 / 0.513 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.6852, allocations: 7.875 kB / 0.513 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.6853, allocations: 0 / 0.513 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.6853, allocations: 3.969 kB / 0.513 GB, free: 9.918 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.095e-05/0.6854, allocations: 104 kB / 0.5131 GB, free: 9.836 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6854, allocations: 3.938 kB / 0.5131 GB, free: 9.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004198/0.6858, allocations: 3.844 kB / 0.5131 GB, free: 9.832 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 () * Number of clocked 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.0001119/0.6859, allocations: 102.3 kB / 0.5132 GB, free: 9.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001907/0.6861, allocations: 26.2 kB / 0.5132 GB, free: 9.734 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6862, allocations: 3.938 kB / 0.5132 GB, free: 9.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.774e-05/0.6862, allocations: 11.67 kB / 0.5132 GB, free: 9.727 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000553/0.6868, allocations: 26.91 kB / 0.5132 GB, free: 9.719 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004491/0.6873, allocations: 188.4 kB / 0.5134 GB, free: 9.539 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.6874, allocations: 0.6886 MB / 0.5141 GB, free: 8.836 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.354e-05/0.6875, allocations: 11.19 kB / 0.5141 GB, free: 8.832 MB / 330.7 MB Notification: Performance of SimCode: time 3.6e-07/0.6875, allocations: 3.938 kB / 0.5141 GB, free: 8.828 MB / 330.7 MB Notification: Performance of Templates: time 0.002773/0.6903, allocations: 0.6821 MB / 0.5148 GB, free: 8.492 MB / 330.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