Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 114 kB / 17.7 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 49.72 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1159, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004491/0.1204, allocations: 1.845 MB / 353.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.1221, allocations: 0.6894 MB / 354 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002141/0.1223, allocations: 0 / 354 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.1226, allocations: 23.8 kB / 354.1 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002196/0.1228, allocations: 27.78 kB / 354.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007803/0.1236, allocations: 158.9 kB / 354.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002819/0.1239, allocations: 147.6 kB / 354.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.1241, allocations: 69.31 kB / 354.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.1243, allocations: 59.72 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.1244, allocations: 59.69 kB / 354.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.3e-05/0.1245, allocations: 12 kB / 354.6 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.1246, allocations: 43.97 kB / 354.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.824e-05/0.1247, allocations: 47.78 kB / 354.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.1249, allocations: 67.59 kB / 354.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004033/0.1253, allocations: 195.3 kB / 354.9 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.1253, allocations: 4 kB / 354.9 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1253, allocations: 4 kB / 354.9 MB, free: 260 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1253, allocations: 0 / 354.9 MB, free: 260 kB / 286.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.001074/0.1264, allocations: 482.7 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.1264, allocations: 11.89 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.101e-05/0.1265, allocations: 16.75 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.127, allocations: 244 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.127, allocations: 8.562 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.127, allocations: 12.06 kB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007725/0.1278, allocations: 329.5 kB / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.1278, allocations: 0 / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.1279, allocations: 4 kB / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1279, allocations: 4 kB / 356 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002378/0.1281, allocations: 83.94 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.1287, allocations: 349.4 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.1292, allocations: 262.5 kB / 356.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.1295, allocations: 101.7 kB / 356.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008602/0.1303, allocations: 0.5817 MB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.1304, allocations: 38.56 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.1304, allocations: 0 / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006582/0.131, allocations: 237.2 kB / 357.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.767e-05/0.1312, allocations: 118.8 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.1314, allocations: 198.4 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.1314, allocations: 33.7 kB / 358 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.539e-05/0.1315, allocations: 96.58 kB / 358.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.1316, allocations: 27.73 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.257e-05/0.1316, allocations: 37.7 kB / 358.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1318, allocations: 326.8 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.568e-05/0.1319, allocations: 43.97 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.1321, allocations: 165.1 kB / 358.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.1323, allocations: 200.1 kB / 358.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.1323, allocations: 4 kB / 358.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003657/0.1327, allocations: 217 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.1327, allocations: 4 kB / 359.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1328, allocations: 7.984 kB / 359.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.1328, allocations: 8 kB / 359.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.1329, allocations: 47.92 kB / 359.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.133, allocations: 8.531 kB / 359.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.1331, allocations: 23.83 kB / 359.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1331, allocations: 16 kB / 359.2 MB, free: 11.45 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.0001576/0.1333, allocations: 143.3 kB / 359.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003012/0.1336, allocations: 164 kB / 359.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003822/0.134, allocations: 183.3 kB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.134, allocations: 8 kB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.134, allocations: 0 / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.134, allocations: 0 / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002948/0.1343, allocations: 225.5 kB / 359.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.1344, allocations: 7.938 kB / 359.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.1345, allocations: 31.97 kB / 360 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1345, allocations: 3.938 kB / 360 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.1346, allocations: 4 kB / 360 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1346, allocations: 4 kB / 360 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1346, allocations: 3.938 kB / 360 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004267/0.135, allocations: 288 kB / 360.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.1351, allocations: 112.8 kB / 360.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.107e-05/0.1352, allocations: 8 kB / 360.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.1353, allocations: 11.98 kB / 360.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.436e-05/0.1354, allocations: 4 kB / 360.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.1354, allocations: 11.98 kB / 360.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.1356, allocations: 143.2 kB / 360.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1356, allocations: 0 / 360.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.1359, allocations: 28 kB / 360.6 MB, free: 9.988 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.000212/0.1361, allocations: 123.1 kB / 360.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003836/0.1365, allocations: 151.7 kB / 360.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1365, allocations: 0 / 360.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.112e-05/0.1366, allocations: 11.98 kB / 360.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006086/0.1372, allocations: 152.7 kB / 361 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006843/0.1379, allocations: 325 kB / 361.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.1383, allocations: 0.7361 MB / 362 MB, free: 8.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.839e-05/0.1384, allocations: 21.55 kB / 362.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.482e-05/0.1384, allocations: 15.44 kB / 362.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1384, allocations: 4 kB / 362.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of Templates: time 0.006617/0.145, allocations: 2.343 MB / 364.4 MB, free: 6.078 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches