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.001611/0.001612, allocations: 106.1 kB / 16.31 MB, free: 5.879 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.001359/0.001359, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.645/1.645, allocations: 205.1 MB / 223.1 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1468/0.1468, allocations: 12.6 MB / 283.1 MB, free: 15.46 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.002326/0.002327, allocations: 91.88 kB / 343.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3438, allocations: 49.38 MB / 392.9 MB, free: 49.46 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.003998/0.3478, allocations: 1.85 MB / 394.7 MB, free: 48.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.3492, allocations: 0.669 MB / 395.4 MB, free: 47.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.3494, allocations: 7.062 kB / 395.4 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000172/0.3496, allocations: 21.2 kB / 395.4 MB, free: 47.69 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.3497, allocations: 25.12 kB / 395.5 MB, free: 47.67 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003964/0.3501, allocations: 97.33 kB / 395.6 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.3504, allocations: 145 kB / 395.7 MB, free: 47.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.3506, allocations: 66.06 kB / 395.8 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.3507, allocations: 56.33 kB / 395.8 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.3509, allocations: 52.31 kB / 395.9 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.3509, allocations: 14 kB / 395.9 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.53e-05/0.351, allocations: 10.06 kB / 395.9 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.926e-05/0.351, allocations: 32.14 kB / 395.9 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.603e-05/0.3511, allocations: 60.3 kB / 396 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.3514, allocations: 130.3 kB / 396.1 MB, free: 47.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3514, allocations: 0 / 396.1 MB, free: 47.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3514, allocations: 0 / 396.1 MB, free: 47.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.3514, allocations: 1.094 kB / 396.1 MB, free: 47.32 MB / 318.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.0006191/0.352, allocations: 458.2 kB / 396.6 MB, free: 46.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3521, allocations: 9 kB / 396.6 MB, free: 46.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.3521, allocations: 21.44 kB / 396.6 MB, free: 46.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.3524, allocations: 237.2 kB / 396.8 MB, free: 46.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.3524, allocations: 6.969 kB / 396.8 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.3524, allocations: 10.28 kB / 396.8 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00067/0.3531, allocations: 295.1 kB / 397.1 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.3531, allocations: 3.938 kB / 397.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.3532, allocations: 1.75 kB / 397.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.872e-06/0.3532, allocations: 1.812 kB / 397.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.3534, allocations: 80.12 kB / 397.2 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004639/0.3539, allocations: 437.8 kB / 397.6 MB, free: 45.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.3543, allocations: 292 kB / 397.9 MB, free: 45.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.3545, allocations: 107.7 kB / 398 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.3545, allocations: 3.531 kB / 398 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3545, allocations: 41.12 kB / 398.1 MB, free: 45.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/0.3545, allocations: 0 / 398.1 MB, free: 45.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006359/0.3552, allocations: 224.4 kB / 398.3 MB, free: 45.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.646e-05/0.3553, allocations: 197.7 kB / 398.5 MB, free: 45.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.3555, allocations: 187.6 kB / 398.7 MB, free: 45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.3555, allocations: 30.92 kB / 398.7 MB, free: 44.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.3556, allocations: 97.77 kB / 398.8 MB, free: 44.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.3556, allocations: 22.81 kB / 398.8 MB, free: 44.85 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.3557, allocations: 38.48 kB / 398.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.3558, allocations: 322.5 kB / 399.2 MB, free: 44.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.233e-05/0.3558, allocations: 34.09 kB / 399.2 MB, free: 44.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.356, allocations: 136.7 kB / 399.3 MB, free: 44.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.3562, allocations: 180.4 kB / 399.5 MB, free: 44.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3562, allocations: 1.031 kB / 399.5 MB, free: 44.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002913/0.3565, allocations: 170.1 kB / 399.7 MB, free: 44.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3565, allocations: 10.7 kB / 399.7 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.3565, allocations: 4.469 kB / 399.7 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.3566, allocations: 4.531 kB / 399.7 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.3567, allocations: 41.52 kB / 399.7 MB, free: 44.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.3567, allocations: 7.781 kB / 399.7 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.3568, allocations: 19.38 kB / 399.8 MB, free: 43.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.3569, allocations: 12.75 kB / 399.8 MB, free: 43.99 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.357, allocations: 136.9 kB / 399.9 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.3573, allocations: 149.1 kB / 400.1 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.3573, allocations: 23.45 kB / 400.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3573, allocations: 2.312 kB / 400.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.3573, allocations: 2.219 kB / 400.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3574, allocations: 5.094 kB / 400.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.3576, allocations: 221 kB / 400.3 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3576, allocations: 5.094 kB / 400.3 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.3578, allocations: 40.72 kB / 400.3 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.3578, allocations: 2.062 kB / 400.3 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3578, allocations: 6.656 kB / 400.4 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3578, allocations: 1.344 kB / 400.4 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3578, allocations: 1.188 kB / 400.4 MB, free: 43.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003807/0.3582, allocations: 361.9 kB / 400.7 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.865e-05/0.3583, allocations: 109.6 kB / 400.8 MB, free: 43.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.3583, allocations: 11.52 kB / 400.8 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.3585, allocations: 6.25 kB / 400.8 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.286e-05/0.3585, allocations: 14.14 kB / 400.8 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.3585, allocations: 8.625 kB / 400.9 MB, free: 43.04 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.3586, allocations: 139.6 kB / 401 MB, free: 42.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3586, allocations: 3.938 kB / 401 MB, free: 42.93 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.359, allocations: 25.58 kB / 401 MB, free: 42.93 MB / 318.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.552e-05/0.3591, allocations: 93.03 kB / 401.1 MB, free: 42.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003183/0.3594, allocations: 134.2 kB / 401.2 MB, free: 42.78 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3594, allocations: 1.281 kB / 401.2 MB, free: 42.78 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.136e-05/0.3595, allocations: 10.91 kB / 401.3 MB, free: 42.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007161/0.3602, allocations: 110 kB / 401.4 MB, free: 42.72 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006367/0.3608, allocations: 322.9 kB / 401.7 MB, free: 42.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.3611, allocations: 0.7263 MB / 402.4 MB, free: 41.74 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.686e-05/0.3612, allocations: 14.12 kB / 402.4 MB, free: 41.74 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.742e-05/0.3612, allocations: 23.42 kB / 402.4 MB, free: 41.73 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3612, allocations: 1 kB / 402.4 MB, free: 41.73 MB / 318.1 MB Notification: Performance of Templates: time 0.004672/0.3659, allocations: 1.721 MB / 404.2 MB, free: 40.89 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches