Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0008771/0.0008768, allocations: 177.6 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.3 MB / 213.7 MB, free: 1.754 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.0008171/0.0008172, allocations: 95.53 kB / 261.8 MB, free: 1.684 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.07545/0.07545, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.055e-05/2.058e-05, allocations: 4 kB / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2433, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.347, allocations: 79.02 MB / 0.4964 GB, free: 3.234 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.3473, allocations: 75.95 kB / 0.4965 GB, free: 3.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01214/0.3595, allocations: 4.567 MB / 0.5009 GB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3595, allocations: 0 / 0.5009 GB, free: 14.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.3595, allocations: 0 / 0.5009 GB, free: 14.59 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.000498/0.36, allocations: 462 kB / 0.5014 GB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3601, allocations: 8.031 kB / 0.5014 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.3601, allocations: 19.81 kB / 0.5014 GB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.3604, allocations: 235.2 kB / 0.5016 GB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.3605, allocations: 4 kB / 0.5016 GB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.3605, allocations: 8 kB / 0.5017 GB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001285/0.3606, allocations: 60.17 kB / 0.5017 GB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.3611, allocations: 274.9 kB / 0.502 GB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3611, allocations: 4 kB / 0.502 GB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.3611, allocations: 4 kB / 0.502 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3611, allocations: 0 / 0.502 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003984/0.3615, allocations: 318.1 kB / 0.5023 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.3618, allocations: 226.3 kB / 0.5025 GB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.362, allocations: 74.03 kB / 0.5026 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005476/0.3625, allocations: 0.5778 MB / 0.5031 GB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.3626, allocations: 46.59 kB / 0.5032 GB, free: 11.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.322e-06/0.3626, allocations: 0 / 0.5032 GB, free: 11.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003055/0.3629, allocations: 141.5 kB / 0.5033 GB, free: 11.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.781e-05/0.363, allocations: 110.8 kB / 0.5034 GB, free: 11.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.3631, allocations: 169.4 kB / 0.5036 GB, free: 11.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.3632, allocations: 25.7 kB / 0.5036 GB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.436e-05/0.3632, allocations: 104.6 kB / 0.5037 GB, free: 11.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.3633, allocations: 23.83 kB / 0.5037 GB, free: 11.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/0.3633, allocations: 0 / 0.5037 GB, free: 11.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3634, allocations: 330.8 kB / 0.504 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.443e-05/0.3635, allocations: 28.36 kB / 0.5041 GB, free: 11.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.3636, allocations: 153.7 kB / 0.5042 GB, free: 10.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.878e-05/0.3637, allocations: 55.94 kB / 0.5043 GB, free: 10.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3637, allocations: 3.938 kB / 0.5043 GB, free: 10.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002377/0.3639, allocations: 177.1 kB / 0.5044 GB, free: 10.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.364, allocations: 8.594 kB / 0.5045 GB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.364, allocations: 4 kB / 0.5045 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.364, allocations: 12 kB / 0.5045 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.3641, allocations: 47.91 kB / 0.5045 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3642, allocations: 19.83 kB / 0.5045 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.3643, allocations: 12.08 kB / 0.5045 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.3643, allocations: 8 kB / 0.5045 GB, free: 10.46 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 9.091e-05/0.3644, allocations: 116.9 kB / 0.5047 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002016/0.3646, allocations: 137.3 kB / 0.5048 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/0.3649, allocations: 156.3 kB / 0.5049 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3649, allocations: 0 / 0.5049 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3649, allocations: 0 / 0.5049 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3649, allocations: 7.953 kB / 0.5049 GB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.3651, allocations: 205.9 kB / 0.5051 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.3651, allocations: 0 / 0.5051 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.3653, allocations: 31.98 kB / 0.5052 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.3653, allocations: 3.984 kB / 0.5052 GB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.3653, allocations: 4 kB / 0.5052 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3653, allocations: 0 / 0.5052 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3653, allocations: 4 kB / 0.5052 GB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.3656, allocations: 260.7 kB / 0.5054 GB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.769e-05/0.3657, allocations: 120.8 kB / 0.5056 GB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.3657, allocations: 4 kB / 0.5056 GB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.3659, allocations: 15.98 kB / 0.5056 GB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.3659, allocations: 4 kB / 0.5056 GB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.3659, allocations: 4 kB / 0.5056 GB, free: 9.305 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001426/0.3661, allocations: 136.4 kB / 0.5057 GB, free: 9.172 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3661, allocations: 0 / 0.5057 GB, free: 9.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000299/0.3664, allocations: 27.94 kB / 0.5057 GB, free: 9.145 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.0001657/0.3666, allocations: 111.2 kB / 0.5058 GB, free: 9.027 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000202/0.3668, allocations: 107.8 kB / 0.5059 GB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3668, allocations: 0 / 0.5059 GB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.535e-05/0.3668, allocations: 8 kB / 0.506 GB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/0.3672, allocations: 130.9 kB / 0.5061 GB, free: 8.781 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/0.3677, allocations: 218 kB / 0.5063 GB, free: 8.535 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.368, allocations: 0.7438 MB / 0.507 GB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.852e-05/0.3681, allocations: 9.344 kB / 0.507 GB, free: 7.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.777e-05/0.3681, allocations: 23.42 kB / 0.507 GB, free: 7.734 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3681, allocations: 4 kB / 0.507 GB, free: 7.73 MB / 362.7 MB Notification: Performance of Templates: time 0.004759/0.3729, allocations: 1.97 MB / 0.509 GB, free: 5.762 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches