Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001041/0.001041, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001857/0.001857, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002782, allocations: 4 kB / 307.7 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.14, allocations: 51.52 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.00251/0.1426, allocations: 1.573 MB / 360.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.1441, allocations: 0.7246 MB / 361.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.1443, allocations: 7.938 kB / 361.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.1444, allocations: 11.86 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.1446, allocations: 15.88 kB / 361.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.1451, allocations: 147.8 kB / 361.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.1453, allocations: 143.5 kB / 361.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.1455, allocations: 53.52 kB / 361.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.1457, allocations: 59.64 kB / 362 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.1458, allocations: 43.72 kB / 362 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.1458, allocations: 4 kB / 362 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.1459, allocations: 51.94 kB / 362.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.33e-05/0.146, allocations: 35.78 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.958e-05/0.1461, allocations: 77.31 kB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.1464, allocations: 179.3 kB / 362.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1464, allocations: 0 / 362.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1464, allocations: 4 kB / 362.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1464, allocations: 4 kB / 362.4 MB, free: 10.12 MB / 302.1 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.0007705/0.1472, allocations: 467.2 kB / 362.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1472, allocations: 8.031 kB / 362.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.1474, allocations: 32.73 kB / 362.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.1477, allocations: 239.8 kB / 363.1 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.1477, allocations: 12.56 kB / 363.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.1478, allocations: 12.12 kB / 363.1 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007492/0.1485, allocations: 342.6 kB / 363.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1486, allocations: 4 kB / 363.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.1486, allocations: 7.984 kB / 363.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1486, allocations: 4 kB / 363.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002634/0.1489, allocations: 99.81 kB / 363.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004385/0.1493, allocations: 345.5 kB / 363.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005148/0.1498, allocations: 286.1 kB / 364.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.1501, allocations: 101.7 kB / 364.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006509/0.1507, allocations: 0.5895 MB / 364.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.1508, allocations: 30.84 kB / 364.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.794e-06/0.1508, allocations: 7.938 kB / 364.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006658/0.1514, allocations: 251.5 kB / 365.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.1516, allocations: 122.7 kB / 365.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.1518, allocations: 199.3 kB / 365.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.1518, allocations: 29.7 kB / 365.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.227e-05/0.1519, allocations: 104.6 kB / 365.6 MB, free: 6.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.661e-05/0.1519, allocations: 19.8 kB / 365.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-05/0.152, allocations: 21.7 kB / 365.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1521, allocations: 326.8 kB / 366 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.785e-05/0.1522, allocations: 39.97 kB / 366 MB, free: 6.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.1524, allocations: 163 kB / 366.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.1526, allocations: 216 kB / 366.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1527, allocations: 7.938 kB / 366.4 MB, free: 5.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003399/0.153, allocations: 217 kB / 366.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.153, allocations: 10.81 kB / 366.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.1531, allocations: 4.594 kB / 366.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1531, allocations: 11.94 kB / 366.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.1532, allocations: 43.92 kB / 366.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.1533, allocations: 7.984 kB / 366.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.1534, allocations: 19.94 kB / 366.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.1534, allocations: 8 kB / 366.7 MB, free: 5.262 MB / 302.1 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.1536, allocations: 153.7 kB / 366.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003272/0.1539, allocations: 173.2 kB / 367 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003816/0.1543, allocations: 187.3 kB / 367.2 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.1543, allocations: 0 / 367.2 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1543, allocations: 4 kB / 367.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1543, allocations: 4 kB / 367.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.1546, allocations: 229.5 kB / 367.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.1546, allocations: 0 / 367.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.1547, allocations: 43.84 kB / 367.5 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1547, allocations: 0 / 367.5 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.1548, allocations: 4 kB / 367.5 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1548, allocations: 4 kB / 367.5 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1548, allocations: 0 / 367.5 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.1552, allocations: 306.4 kB / 367.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.958e-05/0.1554, allocations: 116.8 kB / 367.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.1554, allocations: 15.92 kB / 367.9 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1555, allocations: 11.98 kB / 367.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.1556, allocations: 0 / 367.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.1556, allocations: 8 kB / 368 MB, free: 3.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.1558, allocations: 143.2 kB / 368.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1558, allocations: 0 / 368.1 MB, free: 3.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.1561, allocations: 32 kB / 368.1 MB, free: 3.75 MB / 302.1 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 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001883/0.1563, allocations: 119.2 kB / 368.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003598/0.1567, allocations: 152.8 kB / 368.4 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.1567, allocations: 4 kB / 368.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.668e-05/0.1567, allocations: 11.98 kB / 368.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006572/0.1574, allocations: 149.5 kB / 368.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007646/0.1582, allocations: 406.1 kB / 368.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.1585, allocations: 0.7286 MB / 369.7 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.142e-05/0.1586, allocations: 17.48 kB / 369.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.005e-05/0.1587, allocations: 31.42 kB / 369.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1587, allocations: 0 / 369.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of Templates: time 0.2418/0.4005, allocations: 2.175 MB / 371.9 MB, free: 19.06 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches