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.001583/0.001584, allocations: 110.6 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00191/0.001911, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.3 MB / 246.9 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 64.52 kB / 306.9 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1259, allocations: 50.53 MB / 357.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.00498/0.1309, allocations: 1.92 MB / 359.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1325, allocations: 0.7401 MB / 360.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.1327, allocations: 7.938 kB / 360.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.133, allocations: 11.86 kB / 360.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.1332, allocations: 23.84 kB / 360.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006121/0.1338, allocations: 143.2 kB / 360.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.1341, allocations: 147.5 kB / 360.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.1343, allocations: 57.5 kB / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.1345, allocations: 55.72 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.1346, allocations: 59.69 kB / 360.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.1347, allocations: 8 kB / 360.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.1348, allocations: 47.95 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1349, allocations: 39.78 kB / 360.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.026e-05/0.135, allocations: 63.53 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002623/0.1353, allocations: 139.7 kB / 360.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1353, allocations: 4 kB / 360.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1353, allocations: 0 / 360.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.1353, allocations: 0 / 360.9 MB, free: 10.96 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.0009047/0.1362, allocations: 487.1 kB / 361.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1363, allocations: 8.031 kB / 361.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.1365, allocations: 32.64 kB / 361.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.1368, allocations: 235.9 kB / 361.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.1369, allocations: 8.562 kB / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.1369, allocations: 16.12 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007445/0.1377, allocations: 330.8 kB / 362 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1377, allocations: 3.984 kB / 362 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.1377, allocations: 8 kB / 362 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1377, allocations: 3.984 kB / 362 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002567/0.138, allocations: 87.83 kB / 362.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000488/0.1385, allocations: 337.6 kB / 362.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/0.139, allocations: 270.3 kB / 362.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.1392, allocations: 101.7 kB / 362.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007072/0.14, allocations: 0.5856 MB / 363.4 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.14, allocations: 34.56 kB / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.713e-06/0.14, allocations: 0 / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006442/0.1407, allocations: 248.2 kB / 363.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.013e-05/0.1408, allocations: 118.7 kB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.141, allocations: 199.1 kB / 364 MB, free: 7.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.141, allocations: 25.7 kB / 364 MB, free: 7.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.1411, allocations: 112.5 kB / 364.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.1411, allocations: 11.91 kB / 364.1 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.26e-05/0.1412, allocations: 37.7 kB / 364.1 MB, free: 7.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1414, allocations: 334.9 kB / 364.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.419e-05/0.1415, allocations: 35.98 kB / 364.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.1417, allocations: 166 kB / 364.7 MB, free: 6.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.1419, allocations: 200.1 kB / 364.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.1419, allocations: 4 kB / 364.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003562/0.1423, allocations: 217.5 kB / 365.1 MB, free: 6.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.1423, allocations: 11.98 kB / 365.1 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.1424, allocations: 12.03 kB / 365.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1424, allocations: 8 kB / 365.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.1426, allocations: 39.92 kB / 365.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.1426, allocations: 7.984 kB / 365.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.1427, allocations: 23.83 kB / 365.2 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.1427, allocations: 12 kB / 365.2 MB, free: 6.137 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.0001622/0.1429, allocations: 153.6 kB / 365.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003344/0.1433, allocations: 165.2 kB / 365.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003811/0.1436, allocations: 183.3 kB / 365.7 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.1437, allocations: 4 kB / 365.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1437, allocations: 0 / 365.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1437, allocations: 0 / 365.7 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.144, allocations: 221.6 kB / 365.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.144, allocations: 7.938 kB / 365.9 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.1441, allocations: 39.91 kB / 365.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1441, allocations: 0 / 365.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.1442, allocations: 4 kB / 365.9 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1442, allocations: 4 kB / 365.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1442, allocations: 0 / 365.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004167/0.1446, allocations: 291.9 kB / 366.2 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.1447, allocations: 116.8 kB / 366.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.298e-05/0.1448, allocations: 15.92 kB / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.1449, allocations: 4 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.145, allocations: 7.984 kB / 366.4 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.145, allocations: 7.984 kB / 366.4 MB, free: 4.828 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001362/0.1451, allocations: 143.2 kB / 366.5 MB, free: 4.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1451, allocations: 0 / 366.5 MB, free: 4.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003402/0.1455, allocations: 32 kB / 366.6 MB, free: 4.656 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.0001984/0.1457, allocations: 115.2 kB / 366.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.1461, allocations: 143.7 kB / 366.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1461, allocations: 3.938 kB / 366.8 MB, free: 4.395 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.898e-05/0.1461, allocations: 16.05 kB / 366.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006694/0.1468, allocations: 154.1 kB / 367 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007732/0.1476, allocations: 404.5 kB / 367.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1479, allocations: 0.7402 MB / 368.1 MB, free: 3.027 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.487e-05/0.148, allocations: 23.36 kB / 368.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.148, allocations: 4 kB / 368.1 MB, free: 3 MB / 302.1 MB Notification: Performance of Templates: time 0.004883/0.1529, allocations: 2.243 MB / 370.4 MB, free: 0.7656 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/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