Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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 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 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 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_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 95.69 kB / 15.74 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00209/0.002091, allocations: 173 kB / 16.62 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.4 MB / 222.8 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08679/0.08679, allocations: 12.6 MB / 283.7 MB, free: 8.676 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007662/0.0007664, allocations: 24 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1064, allocations: 50.38 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002455/0.1089, allocations: 1.513 MB / 396.4 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.1105, allocations: 0.6403 MB / 397.1 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002064/0.1108, allocations: 11.94 kB / 397.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.1109, allocations: 15.86 kB / 397.1 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.1111, allocations: 15.86 kB / 397.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.1115, allocations: 87.84 kB / 397.2 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.1118, allocations: 123.6 kB / 397.3 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.1119, allocations: 41.7 kB / 397.4 MB, free: 332 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1121, allocations: 39.73 kB / 397.4 MB, free: 292 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1122, allocations: 35.78 kB / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.882e-05/0.1122, allocations: 4 kB / 397.4 MB, free: 252 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.94e-05/0.1123, allocations: 4 kB / 397.4 MB, free: 248 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.763e-05/0.1123, allocations: 19.86 kB / 397.5 MB, free: 228 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.1124, allocations: 45.64 kB / 397.5 MB, free: 176 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.1125, allocations: 96.03 kB / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1125, allocations: 0 / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1125, allocations: 4 kB / 397.6 MB, free: 76 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.922e-06/0.1125, allocations: 0 / 397.6 MB, free: 76 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006841/0.1132, allocations: 430.9 kB / 398 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.1133, allocations: 8.031 kB / 398 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.037e-05/0.1134, allocations: 19.72 kB / 398 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.1138, allocations: 231.7 kB / 398.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.1138, allocations: 12.19 kB / 398.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.1139, allocations: 8 kB / 398.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007397/0.1146, allocations: 307.9 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.1146, allocations: 0 / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/0.1147, allocations: 4 kB / 398.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.1147, allocations: 8 kB / 398.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.115, allocations: 87.83 kB / 398.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006631/0.1156, allocations: 435.4 kB / 399.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004921/0.1161, allocations: 310 kB / 399.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.1164, allocations: 116.4 kB / 399.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.1164, allocations: 4 kB / 399.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.1164, allocations: 50.44 kB / 399.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.393e-06/0.1165, allocations: 3.938 kB / 399.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006002/0.1171, allocations: 241.4 kB / 399.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1172, allocations: 191.9 kB / 400 MB, free: 13.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.1174, allocations: 182.9 kB / 400.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.1174, allocations: 25.7 kB / 400.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.107e-05/0.1175, allocations: 104.5 kB / 400.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.884e-05/0.1176, allocations: 23.92 kB / 400.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.1176, allocations: 0 / 400.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.1177, allocations: 326.8 kB / 400.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.1179, allocations: 23.98 kB / 400.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.118, allocations: 139.4 kB / 400.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.1181, allocations: 51.95 kB / 400.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1182, allocations: 7.938 kB / 400.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000317/0.1185, allocations: 189.5 kB / 401.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.1185, allocations: 4 kB / 401.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.1185, allocations: 4 kB / 401.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.1186, allocations: 8 kB / 401.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.1187, allocations: 35.92 kB / 401.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.1187, allocations: 4 kB / 401.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.1188, allocations: 23.89 kB / 401.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.1189, allocations: 8 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001513/0.119, allocations: 145.5 kB / 401.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003026/0.1193, allocations: 149.3 kB / 401.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.679e-05/0.1194, allocations: 17.41 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-06/0.1194, allocations: 4 kB / 401.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.1194, allocations: 4 kB / 401.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.1194, allocations: 3.984 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.1198, allocations: 217.6 kB / 401.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1198, allocations: 0 / 401.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.1199, allocations: 43.91 kB / 401.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1199, allocations: 7.891 kB / 401.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.12, allocations: 8 kB / 401.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.12, allocations: 4 kB / 401.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.12, allocations: 0 / 401.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/0.1204, allocations: 384.1 kB / 402.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.934e-05/0.1205, allocations: 104.9 kB / 402.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.389e-05/0.1205, allocations: 11.95 kB / 402.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.1207, allocations: 12 kB / 402.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.362e-05/0.1207, allocations: 7.984 kB / 402.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.1208, allocations: 4 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.1209, allocations: 137.1 kB / 402.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1209, allocations: 7.938 kB / 402.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.1212, allocations: 20 kB / 402.4 MB, free: 10.73 MB / 302.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: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.000116/0.1213, allocations: 99.25 kB / 402.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003018/0.1216, allocations: 128.8 kB / 402.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.1217, allocations: 4 kB / 402.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.344e-05/0.1217, allocations: 11.94 kB / 402.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000699/0.1224, allocations: 116 kB / 402.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006791/0.1231, allocations: 365.8 kB / 403.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.1235, allocations: 0.7241 MB / 403.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.399e-05/0.1236, allocations: 25.55 kB / 403.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.121e-05/0.1237, allocations: 15.44 kB / 403.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1237, allocations: 0 / 403.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of Templates: time 0.00482/0.1285, allocations: 1.53 MB / 405.4 MB, free: 7.664 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.bits,hold.compDelay.resolution,hold.compDelay.shiftCounter,hold.computationalDelay,hold.hold1.y_start,hold.limited,hold.limiter.uMax,hold.limiter.uMin,hold.quantized,hold.resolution,hold.shiftCounter,hold.y,hold.yMax,hold.yMin,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time