Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 95.08 kB / 16.3 MB, free: 6.457 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.001374/0.001374, allocations: 184.5 kB / 17.19 MB, free: 6.34 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.545/1.545, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002465, allocations: 6.562 kB / 300.7 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1257, allocations: 50.42 MB / 351.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.002787/0.1286, allocations: 1.528 MB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.13, allocations: 0.5732 MB / 353.2 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001929/0.1302, allocations: 8 kB / 353.2 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.878e-05/0.1303, allocations: 11.86 kB / 353.3 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.1305, allocations: 27.89 kB / 353.3 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.1311, allocations: 95.7 kB / 353.4 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.1313, allocations: 91.77 kB / 353.5 MB, free: 9.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.1315, allocations: 45.94 kB / 353.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.1316, allocations: 43.83 kB / 353.6 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.1318, allocations: 35.73 kB / 353.6 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.1318, allocations: 0 / 353.6 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.249e-05/0.1318, allocations: 4 kB / 353.6 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.374e-05/0.1319, allocations: 23.91 kB / 353.6 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.29e-05/0.1319, allocations: 45.58 kB / 353.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.1321, allocations: 99.78 kB / 353.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1321, allocations: 0 / 353.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1321, allocations: 4 kB / 353.8 MB, free: 9.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1321, allocations: 0 / 353.8 MB, free: 9.07 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006222/0.1328, allocations: 422.9 kB / 354.2 MB, free: 8.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.1328, allocations: 8.031 kB / 354.2 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.512e-05/0.1329, allocations: 19.77 kB / 354.2 MB, free: 8.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.1333, allocations: 239.6 kB / 354.4 MB, free: 8.305 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.1333, allocations: 12.19 kB / 354.5 MB, free: 8.293 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/0.1334, allocations: 8 kB / 354.5 MB, free: 8.285 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008519/0.1342, allocations: 279.9 kB / 354.7 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.1343, allocations: 0 / 354.7 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.1343, allocations: 15.89 kB / 354.7 MB, free: 7.969 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1343, allocations: 0 / 354.7 MB, free: 7.969 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003537/0.1347, allocations: 95.88 kB / 354.8 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.1354, allocations: 415.5 kB / 355.2 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006371/0.136, allocations: 318.3 kB / 355.6 MB, free: 7.031 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.1361, allocations: 15.98 kB / 355.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.1361, allocations: 38.52 kB / 355.6 MB, free: 6.969 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.1361, allocations: 0 / 355.6 MB, free: 6.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008012/0.1369, allocations: 233.2 kB / 355.8 MB, free: 6.734 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.1371, allocations: 192.3 kB / 356 MB, free: 6.504 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002489/0.1373, allocations: 179.1 kB / 356.2 MB, free: 6.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.1374, allocations: 33.7 kB / 356.2 MB, free: 6.281 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1375, allocations: 111.9 kB / 356.3 MB, free: 6.168 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.861e-05/0.1376, allocations: 8 kB / 356.4 MB, free: 6.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.1376, allocations: 4 kB / 356.4 MB, free: 6.156 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1378, allocations: 330.8 kB / 356.7 MB, free: 5.824 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.958e-05/0.1379, allocations: 23.89 kB / 356.7 MB, free: 5.801 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.1381, allocations: 128.8 kB / 356.8 MB, free: 5.625 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.1382, allocations: 51.95 kB / 356.9 MB, free: 5.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1383, allocations: 0 / 356.9 MB, free: 5.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004031/0.1387, allocations: 169.3 kB / 357 MB, free: 5.402 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.1387, allocations: 15.89 kB / 357.1 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.1387, allocations: 4 kB / 357.1 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1388, allocations: 4 kB / 357.1 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.1389, allocations: 35.92 kB / 357.1 MB, free: 5.344 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.139, allocations: 7.938 kB / 357.1 MB, free: 5.336 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.1391, allocations: 12.33 kB / 357.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.1392, allocations: 16 kB / 357.1 MB, free: 5.309 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 0.0001689/0.1394, allocations: 129.8 kB / 357.3 MB, free: 5.172 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004385/0.1398, allocations: 149.9 kB / 357.4 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.865e-05/0.1399, allocations: 29.44 kB / 357.4 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.1399, allocations: 11.97 kB / 357.5 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1399, allocations: 0 / 357.5 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.1399, allocations: 4 kB / 357.5 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004593/0.1404, allocations: 217.4 kB / 357.7 MB, free: 4.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.1404, allocations: 4 kB / 357.7 MB, free: 4.707 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.1406, allocations: 39.91 kB / 357.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.1406, allocations: 4 kB / 357.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.1407, allocations: 4 kB / 357.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.1407, allocations: 7.953 kB / 357.7 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.1407, allocations: 4 kB / 357.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000641/0.1413, allocations: 419.8 kB / 358.1 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.1415, allocations: 100.9 kB / 358.2 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.1416, allocations: 8 kB / 358.2 MB, free: 4.062 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.1418, allocations: 19.98 kB / 358.3 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.1419, allocations: 4 kB / 358.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.1419, allocations: 7.984 kB / 358.3 MB, free: 4.031 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.142, allocations: 129.2 kB / 358.4 MB, free: 3.906 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1421, allocations: 0 / 358.4 MB, free: 3.906 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006241/0.1427, allocations: 20 kB / 358.4 MB, free: 3.887 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001602/0.1429, allocations: 103.2 kB / 358.5 MB, free: 3.777 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003704/0.1432, allocations: 116.7 kB / 358.6 MB, free: 3.664 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1433, allocations: 0 / 358.6 MB, free: 3.664 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.097e-05/0.1433, allocations: 28.05 kB / 358.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.1441, allocations: 104 kB / 358.8 MB, free: 3.535 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001793/0.1459, allocations: 0.515 MB / 359.3 MB, free: 2.984 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.1464, allocations: 0.7358 MB / 360 MB, free: 2.223 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.902e-05/0.1464, allocations: 13.56 kB / 360 MB, free: 2.211 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.231e-05/0.1465, allocations: 19.42 kB / 360 MB, free: 2.191 MB / 286.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1465, allocations: 288 / 360 MB, free: 2.191 MB / 286.1 MB Notification: Performance of Templates: time 0.005844/0.1524, allocations: 1.459 MB / 361.5 MB, free: 0.7461 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,hold1.y,// shiftSample1.y Variables in the result:hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.y,hold1.yMax,hold1.yMin,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time