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.001309/0.001309, allocations: 100.9 kB / 15.73 MB, free: 436 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.001514/0.001514, allocations: 180.9 kB / 16.62 MB, free: 6.418 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.621/1.621, allocations: 205.4 MB / 222.8 MB, free: 5.664 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.07973/0.07973, allocations: 12.59 MB / 283.6 MB, free: 8.711 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.000677/0.000677, allocations: 20 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1113, allocations: 50.38 MB / 394.9 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002115/0.1135, allocations: 1.518 MB / 396.4 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009751/0.1145, allocations: 0.617 MB / 397 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.1147, allocations: 7.938 kB / 397 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.766e-05/0.1147, allocations: 11.92 kB / 397 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.1149, allocations: 27.84 kB / 397.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000365/0.1153, allocations: 95.77 kB / 397.2 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.1154, allocations: 87.78 kB / 397.3 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1156, allocations: 45.66 kB / 397.3 MB, free: 388 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.566e-05/0.1157, allocations: 39.78 kB / 397.3 MB, free: 348 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.294e-05/0.1158, allocations: 39.77 kB / 397.4 MB, free: 308 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.1158, allocations: 4 kB / 397.4 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.844e-05/0.1159, allocations: 4 kB / 397.4 MB, free: 300 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.022e-05/0.1159, allocations: 19.86 kB / 397.4 MB, free: 280 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.333e-05/0.116, allocations: 45.64 kB / 397.4 MB, free: 228 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.1161, allocations: 99.97 kB / 397.5 MB, free: 128 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1161, allocations: 0 / 397.5 MB, free: 128 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1161, allocations: 4 kB / 397.6 MB, free: 124 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1161, allocations: 0 / 397.6 MB, free: 124 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.000561/0.1167, allocations: 426.9 kB / 398 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1167, allocations: 8.031 kB / 398 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.992e-05/0.1168, allocations: 19.72 kB / 398 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.1171, allocations: 231.8 kB / 398.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1171, allocations: 12.19 kB / 398.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.1171, allocations: 4 kB / 398.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005885/0.1177, allocations: 307.9 kB / 398.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1177, allocations: 0 / 398.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.1178, allocations: 4 kB / 398.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1178, allocations: 4 kB / 398.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.118, allocations: 91.83 kB / 398.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004632/0.1185, allocations: 439.3 kB / 399.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004469/0.1189, allocations: 306.2 kB / 399.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.119, allocations: 8.062 kB / 399.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.119, allocations: 42.55 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.562e-06/0.119, allocations: 0 / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005518/0.1195, allocations: 241.4 kB / 399.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.1197, allocations: 204.4 kB / 399.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.1199, allocations: 182.9 kB / 400 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1199, allocations: 29.64 kB / 400.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.968e-05/0.12, allocations: 100.5 kB / 400.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.12, allocations: 19.83 kB / 400.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-06/0.12, allocations: 4 kB / 400.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1202, allocations: 322.8 kB / 400.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.153e-05/0.1203, allocations: 31.97 kB / 400.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1204, allocations: 147.3 kB / 400.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.886e-05/0.1205, allocations: 47.95 kB / 400.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1205, allocations: 0 / 400.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002619/0.1208, allocations: 181.1 kB / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1208, allocations: 8 kB / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1208, allocations: 4 kB / 400.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1208, allocations: 4 kB / 400.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.121, allocations: 36.45 kB / 400.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.121, allocations: 19.92 kB / 401 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.546e-05/0.1211, allocations: 15.91 kB / 401 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.1211, allocations: 8 kB / 401 MB, free: 12.29 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.0001169/0.1212, allocations: 141.5 kB / 401.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.1215, allocations: 157.3 kB / 401.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.882e-05/0.1216, allocations: 29.39 kB / 401.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1216, allocations: 0 / 401.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.1216, allocations: 8 kB / 401.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.1216, allocations: 0 / 401.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.1219, allocations: 209.6 kB / 401.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1219, allocations: 0 / 401.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.122, allocations: 39.97 kB / 401.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.122, allocations: 4 kB / 401.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.1221, allocations: 11.98 kB / 401.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.1221, allocations: 7.938 kB / 401.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1221, allocations: 0 / 401.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004266/0.1225, allocations: 427 kB / 402 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.032e-05/0.1226, allocations: 104.9 kB / 402.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.1226, allocations: 12 kB / 402.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.1228, allocations: 15.98 kB / 402.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.1228, allocations: 4 kB / 402.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.1229, allocations: 7.938 kB / 402.1 MB, free: 11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.722e-05/0.123, allocations: 141.1 kB / 402.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.123, allocations: 0 / 402.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.1233, allocations: 24 kB / 402.3 MB, free: 10.84 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 9.902e-05/0.1234, allocations: 99.25 kB / 402.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002802/0.1237, allocations: 128.7 kB / 402.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1237, allocations: 4.062 kB / 402.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.386e-05/0.1237, allocations: 11.98 kB / 402.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.1243, allocations: 120 kB / 402.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000565/0.1248, allocations: 364.8 kB / 403 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.1252, allocations: 0.728 MB / 403.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.475e-05/0.1253, allocations: 17.55 kB / 403.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.603e-05/0.1253, allocations: 15.44 kB / 403.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1253, allocations: 0 / 403.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of Templates: time 0.00418/0.1295, allocations: 1.522 MB / 405.3 MB, free: 7.777 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