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.00119/0.00119, allocations: 180.1 kB / 15.8 MB, free: 6.34 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.649/1.649, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008578/0.0008577, allocations: 90.88 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07561/0.0756, allocations: 12.61 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003882/0.0003882, allocations: 10.44 kB / 392 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1239, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.241, allocations: 77.74 MB / 0.5079 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.2414, allocations: 79.95 kB / 0.508 GB, free: 13.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00288/0.2443, allocations: 1.129 MB / 0.5091 GB, free: 11.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2443, allocations: 0 / 0.5091 GB, free: 11.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.2443, allocations: 0 / 0.5091 GB, free: 11.89 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003674/0.2447, allocations: 359.1 kB / 0.5094 GB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.2447, allocations: 8.031 kB / 0.5094 GB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.2448, allocations: 7.906 kB / 0.5094 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.245, allocations: 187.4 kB / 0.5096 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.245, allocations: 7.938 kB / 0.5096 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.2451, allocations: 11.95 kB / 0.5096 GB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.2454, allocations: 109 kB / 0.5097 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2454, allocations: 0 / 0.5097 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.2454, allocations: 8 kB / 0.5098 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2454, allocations: 4 kB / 0.5098 GB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.168e-05/0.2455, allocations: 23.97 kB / 0.5098 GB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003682/0.2459, allocations: 273.6 kB / 0.51 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.2461, allocations: 142.4 kB / 0.5102 GB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.2461, allocations: 0 / 0.5102 GB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.2462, allocations: 38.56 kB / 0.5102 GB, free: 10.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.2462, allocations: 0 / 0.5102 GB, free: 10.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002594/0.2464, allocations: 81.61 kB / 0.5103 GB, free: 10.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/0.2465, allocations: 77.11 kB / 0.5104 GB, free: 10.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.2466, allocations: 129.4 kB / 0.5105 GB, free: 10.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.2466, allocations: 25.7 kB / 0.5105 GB, free: 10.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.2467, allocations: 84.14 kB / 0.5106 GB, free: 10.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.466e-06/0.2467, allocations: 4 kB / 0.5106 GB, free: 10.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-06/0.2467, allocations: 4.125 kB / 0.5106 GB, free: 10.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.2468, allocations: 318.8 kB / 0.5109 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.885e-05/0.2469, allocations: 8 kB / 0.5109 GB, free: 9.766 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.675e-05/0.2469, allocations: 39.36 kB / 0.511 GB, free: 9.715 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.517e-05/0.247, allocations: 15.98 kB / 0.511 GB, free: 9.699 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.247, allocations: 3.953 kB / 0.511 GB, free: 9.695 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001243/0.2471, allocations: 77.47 kB / 0.511 GB, free: 9.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2472, allocations: 4 kB / 0.511 GB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2472, allocations: 0 / 0.511 GB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2472, allocations: 8.125 kB / 0.5111 GB, free: 9.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.325e-05/0.2473, allocations: 11.98 kB / 0.5111 GB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.2473, allocations: 0 / 0.5111 GB, free: 9.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.314e-05/0.2473, allocations: 4 kB / 0.5111 GB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.2473, allocations: 4 kB / 0.5111 GB, free: 9.582 MB / 362.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 8.954e-05/0.2474, allocations: 133.4 kB / 0.5112 GB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.058e-05/0.2475, allocations: 49.56 kB / 0.5113 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.845e-05/0.2475, allocations: 16.23 kB / 0.5113 GB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.2476, allocations: 4 kB / 0.5113 GB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2476, allocations: 0 / 0.5113 GB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2476, allocations: 0 / 0.5113 GB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.2477, allocations: 161.7 kB / 0.5114 GB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2478, allocations: 4 kB / 0.5114 GB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.319e-05/0.2478, allocations: 15.95 kB / 0.5114 GB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2478, allocations: 0 / 0.5114 GB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.2478, allocations: 0 / 0.5114 GB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2478, allocations: 4 kB / 0.5114 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2478, allocations: 0 / 0.5114 GB, free: 9.129 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.248, allocations: 186 kB / 0.5116 GB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.131e-05/0.2481, allocations: 96.94 kB / 0.5117 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.2481, allocations: 0 / 0.5117 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.158e-05/0.2482, allocations: 11.98 kB / 0.5117 GB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.2483, allocations: 384 / 0.5117 GB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.2483, allocations: 4 kB / 0.5117 GB, free: 8.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.477e-05/0.2483, allocations: 99.27 kB / 0.5118 GB, free: 8.695 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2483, allocations: 0 / 0.5118 GB, free: 8.695 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002053/0.2486, allocations: 8 kB / 0.5118 GB, free: 8.688 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: 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.0001035/0.2487, allocations: 91.25 kB / 0.5119 GB, free: 8.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001312/0.2488, allocations: 39.91 kB / 0.512 GB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2488, allocations: 0 / 0.512 GB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.441e-05/0.2489, allocations: 12 kB / 0.512 GB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.2491, allocations: 27.84 kB / 0.512 GB, free: 8.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003008/0.2494, allocations: 170 kB / 0.5122 GB, free: 8.316 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.2497, allocations: 0.6926 MB / 0.5128 GB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.138e-05/0.2497, allocations: 0 / 0.5128 GB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.292e-05/0.2498, allocations: 11.44 kB / 0.5128 GB, free: 7.59 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2498, allocations: 0 / 0.5128 GB, free: 7.59 MB / 362.7 MB Notification: Performance of Templates: time 0.002227/0.252, allocations: 436.8 kB / 0.5133 GB, free: 7.168 MB / 362.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/jenkins/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