Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002215/0.002215, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.001139, allocations: 98.56 kB / 267.6 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1049/0.1049, allocations: 12.61 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.306e-05/4.31e-05, allocations: 7.984 kB / 386 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3144, allocations: 50.37 MB / 436.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1784/0.4929, allocations: 79.54 MB / 0.5038 GB, free: 14.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.4933, allocations: 75.95 kB / 0.5039 GB, free: 14.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01001/0.5033, allocations: 2.386 MB / 0.5062 GB, free: 12.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.5034, allocations: 0 / 0.5062 GB, free: 12.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.247e-05/0.5034, allocations: 4 kB / 0.5062 GB, free: 12.01 MB / 362.7 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.0005977/0.504, allocations: 406.3 kB / 0.5066 GB, free: 11.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.5041, allocations: 12.03 kB / 0.5066 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.619e-05/0.5041, allocations: 23.72 kB / 0.5066 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.5045, allocations: 239.6 kB / 0.5069 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.5046, allocations: 12.14 kB / 0.5069 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.5046, allocations: 12 kB / 0.5069 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006117/0.5052, allocations: 268.8 kB / 0.5071 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.5053, allocations: 0 / 0.5071 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.5053, allocations: 4 kB / 0.5071 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.108e-06/0.5053, allocations: 4 kB / 0.5071 GB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.5055, allocations: 47.94 kB / 0.5072 GB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008005/0.5063, allocations: 443.3 kB / 0.5076 GB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004606/0.5068, allocations: 262.2 kB / 0.5079 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.507, allocations: 100.4 kB / 0.508 GB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.18e-05/0.5071, allocations: 11.98 kB / 0.508 GB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.5071, allocations: 46.44 kB / 0.508 GB, free: 9.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 2.765e-06/0.5071, allocations: 0 / 0.508 GB, free: 9.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004535/0.5076, allocations: 137.4 kB / 0.5081 GB, free: 9.746 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.5077, allocations: 204.1 kB / 0.5083 GB, free: 9.504 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.508, allocations: 158.2 kB / 0.5085 GB, free: 9.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.508, allocations: 29.7 kB / 0.5085 GB, free: 9.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.828e-05/0.5081, allocations: 166.9 kB / 0.5087 GB, free: 9.141 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.5082, allocations: 15.89 kB / 0.5087 GB, free: 9.125 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-06/0.5082, allocations: 0 / 0.5087 GB, free: 9.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5083, allocations: 322.8 kB / 0.509 GB, free: 8.801 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.491e-05/0.5084, allocations: 16 kB / 0.509 GB, free: 8.785 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.5086, allocations: 131.4 kB / 0.5091 GB, free: 8.602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.5087, allocations: 51.06 kB / 0.5092 GB, free: 8.555 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5087, allocations: 0 / 0.5092 GB, free: 8.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000362/0.5091, allocations: 157.4 kB / 0.5093 GB, free: 8.395 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.5092, allocations: 11.95 kB / 0.5094 GB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.5092, allocations: 4 kB / 0.5094 GB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.5092, allocations: 4 kB / 0.5094 GB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002695/0.5095, allocations: 39.92 kB / 0.5094 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.824e-05/0.5095, allocations: 7.938 kB / 0.5094 GB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.5097, allocations: 20.27 kB / 0.5094 GB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.5098, allocations: 12 kB / 0.5094 GB, free: 8.297 MB / 362.7 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 () * 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.0001165/0.5099, allocations: 124.6 kB / 0.5096 GB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003124/0.5102, allocations: 125.4 kB / 0.5097 GB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.62e-05/0.5103, allocations: 21.48 kB / 0.5097 GB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.5103, allocations: 4 kB / 0.5097 GB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.5103, allocations: 4 kB / 0.5097 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.5103, allocations: 3.984 kB / 0.5097 GB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003679/0.5107, allocations: 221.4 kB / 0.5099 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.5107, allocations: 4.031 kB / 0.5099 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.511, allocations: 39.97 kB / 0.51 GB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.511, allocations: 0 / 0.51 GB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.5111, allocations: 8 kB / 0.51 GB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.785e-06/0.5111, allocations: 7.953 kB / 0.51 GB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.5111, allocations: 3.938 kB / 0.51 GB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004617/0.5116, allocations: 380.1 kB / 0.5103 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.5117, allocations: 104.9 kB / 0.5104 GB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.082e-05/0.5118, allocations: 8 kB / 0.5104 GB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.512, allocations: 16 kB / 0.5105 GB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.5121, allocations: 7.984 kB / 0.5105 GB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.5121, allocations: 4 kB / 0.5105 GB, free: 7.102 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001622/0.5123, allocations: 133.2 kB / 0.5106 GB, free: 6.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5123, allocations: 7.875 kB / 0.5106 GB, free: 6.965 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004261/0.5127, allocations: 20 kB / 0.5106 GB, free: 6.945 MB / 362.7 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 () * 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.0001463/0.5129, allocations: 115.1 kB / 0.5107 GB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.5132, allocations: 91.81 kB / 0.5108 GB, free: 6.734 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.5132, allocations: 0 / 0.5108 GB, free: 6.734 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.072e-05/0.5132, allocations: 7.984 kB / 0.5108 GB, free: 6.727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006522/0.5139, allocations: 101.1 kB / 0.5109 GB, free: 6.629 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006418/0.5146, allocations: 244.1 kB / 0.5112 GB, free: 6.348 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.515, allocations: 0.7358 MB / 0.5119 GB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.267e-05/0.515, allocations: 15.44 kB / 0.5119 GB, free: 5.57 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5151, allocations: 4 kB / 0.5119 GB, free: 5.566 MB / 362.7 MB Notification: Performance of Templates: time 0.004951/0.52, allocations: 1.785 MB / 0.5136 GB, free: 3.781 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches