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.001316/0.001316, allocations: 175.8 kB / 16.8 MB, free: 5.016 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.389/1.389, allocations: 205.4 MB / 223 MB, free: 9.027 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.0008221/0.0008221, allocations: 87.39 kB / 271.3 MB, free: 8.25 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.1037/0.1037, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004801/0.0004803, allocations: 19.94 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1091, allocations: 50.36 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3699/0.4791, allocations: 77.77 MB / 0.5091 GB, free: 13.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.4794, allocations: 81.94 kB / 0.5092 GB, free: 13.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002627/0.4821, allocations: 1.112 MB / 0.5103 GB, free: 13.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4821, allocations: 0 / 0.5103 GB, free: 13.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.4821, allocations: 3.875 kB / 0.5103 GB, free: 13.11 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.0003014/0.4824, allocations: 355.4 kB / 0.5107 GB, free: 12.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.4824, allocations: 15.5 kB / 0.5107 GB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.4825, allocations: 8.688 kB / 0.5107 GB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.4827, allocations: 202.8 kB / 0.5109 GB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.4827, allocations: 4.188 kB / 0.5109 GB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.4827, allocations: 4.344 kB / 0.5109 GB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.4829, allocations: 109.8 kB / 0.511 GB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.483, allocations: 4.938 kB / 0.511 GB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.483, allocations: 11.75 kB / 0.511 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.483, allocations: 0 / 0.511 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.864e-05/0.4831, allocations: 23.44 kB / 0.511 GB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002753/0.4834, allocations: 265.4 kB / 0.5113 GB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001711/0.4835, allocations: 143.2 kB / 0.5114 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.076e-05/0.4836, allocations: 39.14 kB / 0.5114 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.4836, allocations: 0 / 0.5114 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.43e-05/0.4837, allocations: 34.56 kB / 0.5115 GB, free: 11.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/0.4837, allocations: 0 / 0.5115 GB, free: 11.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002264/0.4839, allocations: 83.05 kB / 0.5116 GB, free: 11.86 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.4839, allocations: 81.05 kB / 0.5116 GB, free: 11.76 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.484, allocations: 134.6 kB / 0.5118 GB, free: 11.65 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.255e-06/0.4841, allocations: 29.7 kB / 0.5118 GB, free: 11.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.4841, allocations: 90.88 kB / 0.5119 GB, free: 11.53 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.4841, allocations: 6.969 kB / 0.5119 GB, free: 11.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.4841, allocations: 0 / 0.5119 GB, free: 11.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.857e-05/0.4842, allocations: 310.8 kB / 0.5122 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.677e-05/0.4842, allocations: 14.95 kB / 0.5122 GB, free: 11.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.589e-05/0.4843, allocations: 35.17 kB / 0.5122 GB, free: 11.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.932e-05/0.4844, allocations: 52.73 kB / 0.5123 GB, free: 11.13 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4844, allocations: 4 kB / 0.5123 GB, free: 11.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001027/0.4845, allocations: 65.75 kB / 0.5123 GB, free: 11.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.4845, allocations: 7.656 kB / 0.5124 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.4845, allocations: 1.062 kB / 0.5124 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.78e-05/0.4846, allocations: 0 / 0.5124 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.385e-05/0.4846, allocations: 19.48 kB / 0.5124 GB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.4847, allocations: 128 / 0.5124 GB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.133e-05/0.4847, allocations: 7.969 kB / 0.5124 GB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.4847, allocations: 0 / 0.5124 GB, free: 11.07 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 6.214e-05/0.4848, allocations: 125.8 kB / 0.5125 GB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.995e-05/0.4848, allocations: 51.84 kB / 0.5126 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.919e-05/0.4849, allocations: 15.95 kB / 0.5126 GB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.4849, allocations: 0 / 0.5126 GB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4849, allocations: 5.016 kB / 0.5126 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.4849, allocations: 0 / 0.5126 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.485, allocations: 180.1 kB / 0.5127 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.4851, allocations: 0 / 0.5127 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-05/0.4851, allocations: 11.62 kB / 0.5128 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.4851, allocations: 7.984 kB / 0.5128 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-06/0.4851, allocations: 0 / 0.5128 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4851, allocations: 3.906 kB / 0.5128 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4851, allocations: 0 / 0.5128 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.4853, allocations: 170.6 kB / 0.5129 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.816e-05/0.4853, allocations: 96.41 kB / 0.513 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.4853, allocations: 0 / 0.513 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-05/0.4854, allocations: 3.875 kB / 0.513 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.508e-05/0.4854, allocations: 3.984 kB / 0.513 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.4854, allocations: 0 / 0.513 GB, free: 10.42 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.828e-05/0.4855, allocations: 103.4 kB / 0.5131 GB, free: 10.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.423e-06/0.4855, allocations: 4 kB / 0.5131 GB, free: 10.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002035/0.4857, allocations: 11.78 kB / 0.5131 GB, free: 10.33 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 9.064e-05/0.4858, allocations: 94.41 kB / 0.5132 GB, free: 10.24 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.4859, allocations: 30.41 kB / 0.5133 GB, free: 10.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.486, allocations: 0 / 0.5133 GB, free: 10.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.087e-05/0.486, allocations: 15.88 kB / 0.5133 GB, free: 10.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.4863, allocations: 34.86 kB / 0.5133 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000296/0.4866, allocations: 155.1 kB / 0.5135 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.4868, allocations: 0.6924 MB / 0.5141 GB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.411e-05/0.4868, allocations: 3.875 kB / 0.5141 GB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.339e-05/0.4868, allocations: 11.42 kB / 0.5141 GB, free: 9.352 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4868, allocations: 0 / 0.5141 GB, free: 9.352 MB / 330.7 MB Notification: Performance of Templates: time 0.002303/0.4891, allocations: 449.4 kB / 0.5146 GB, free: 9.137 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/jenkins1/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