Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001434/0.001434, allocations: 176.6 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.4 MB / 222.6 MB, free: 9.098 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.0009249/0.0009249, allocations: 96.91 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08499/0.08499, allocations: 12.6 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003868, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07637/0.07677, allocations: 50.38 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.001633/0.07844, allocations: 1.516 MB / 443.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008462/0.07931, allocations: 0.6286 MB / 444.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.07946, allocations: 4 kB / 444.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.07959, allocations: 19.8 kB / 444.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.0797, allocations: 15.86 kB / 444.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.08005, allocations: 91.83 kB / 444.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001301/0.08019, allocations: 131.6 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.08031, allocations: 29.73 kB / 444.8 MB, free: 14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.603e-05/0.08039, allocations: 43.77 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.708e-05/0.08047, allocations: 35.73 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.08049, allocations: 4 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.603e-05/0.08052, allocations: 8 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.186e-05/0.08055, allocations: 15.92 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.08058, allocations: 49.58 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.792e-05/0.08068, allocations: 91.81 kB / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.08069, allocations: 0 / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.0807, allocations: 0 / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.08071, allocations: 3.938 kB / 445.1 MB, free: 13.74 MB / 298.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.0004551/0.08117, allocations: 439.1 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.0812, allocations: 8.031 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.942e-05/0.08125, allocations: 19.72 kB / 445.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.08145, allocations: 231.7 kB / 445.7 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.08147, allocations: 8.188 kB / 445.7 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.08149, allocations: 8 kB / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004769/0.08198, allocations: 296.5 kB / 446 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.082, allocations: 3.938 kB / 446 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.08202, allocations: 4 kB / 446.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.08203, allocations: 0 / 446.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.08223, allocations: 91.88 kB / 446.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003334/0.08257, allocations: 431.4 kB / 446.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003716/0.08295, allocations: 306.1 kB / 446.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.08313, allocations: 124.2 kB / 447 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.08316, allocations: 0 / 447 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.08318, allocations: 38.56 kB / 447 MB, free: 11.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.062e-06/0.08318, allocations: 0 / 447 MB, free: 11.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004755/0.08366, allocations: 233.2 kB / 447.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.08373, allocations: 200.6 kB / 447.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.08385, allocations: 182.9 kB / 447.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.08387, allocations: 29.7 kB / 447.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/0.08392, allocations: 108.1 kB / 447.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.456e-05/0.08394, allocations: 11.89 kB / 447.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.08395, allocations: 8 kB / 447.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.095e-05/0.08399, allocations: 318.8 kB / 448.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.97e-05/0.08406, allocations: 27.98 kB / 448.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.352e-05/0.08415, allocations: 130.6 kB / 448.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.615e-05/0.08423, allocations: 43.97 kB / 448.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.08424, allocations: 0 / 448.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002141/0.08446, allocations: 173.1 kB / 448.5 MB, free: 9.941 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.08448, allocations: 8 kB / 448.5 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.08449, allocations: 4 kB / 448.5 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.08451, allocations: 4 kB / 448.5 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.08463, allocations: 39.86 kB / 448.5 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.08464, allocations: 4.5 kB / 448.5 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.136e-05/0.08474, allocations: 23.83 kB / 448.5 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.08476, allocations: 15.95 kB / 448.6 MB, free: 9.844 MB / 298.7 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 7.304e-05/0.08484, allocations: 137.5 kB / 448.7 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002356/0.08508, allocations: 145.4 kB / 448.8 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.08512, allocations: 25.44 kB / 448.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.08513, allocations: 4 kB / 448.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.08514, allocations: 0 / 448.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.08515, allocations: 7.984 kB / 448.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.08534, allocations: 213.5 kB / 449.1 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.08535, allocations: 4 kB / 449.1 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.08549, allocations: 40.14 kB / 449.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.0855, allocations: 4 kB / 449.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.08551, allocations: 4 kB / 449.1 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.08552, allocations: 8 kB / 449.1 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.08553, allocations: 0 / 449.1 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002982/0.08583, allocations: 376.9 kB / 449.5 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.08589, allocations: 112.8 kB / 449.6 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.08592, allocations: 3.984 kB / 449.6 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.08607, allocations: 16 kB / 449.6 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.972e-05/0.0861, allocations: 7.984 kB / 449.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/0.08612, allocations: 4.094 kB / 449.6 MB, free: 8.641 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.892e-05/0.08619, allocations: 145.1 kB / 449.8 MB, free: 8.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.0862, allocations: 0 / 449.8 MB, free: 8.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002772/0.08648, allocations: 20 kB / 449.8 MB, free: 8.48 MB / 298.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 () * 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 6.679e-05/0.08655, allocations: 99.19 kB / 449.9 MB, free: 8.375 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002361/0.08679, allocations: 118.3 kB / 450 MB, free: 8.262 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.08681, allocations: 0 / 450 MB, free: 8.262 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.158e-05/0.08685, allocations: 17.05 kB / 450 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.08741, allocations: 116 kB / 450.1 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007121/0.08814, allocations: 445.8 kB / 450.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001255/0.08828, allocations: 0.7241 MB / 451.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.361e-05/0.08832, allocations: 15.44 kB / 451.3 MB, free: 6.891 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.08832, allocations: 4 kB / 451.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of Templates: time 0.002613/0.09094, allocations: 1.743 MB / 453.1 MB, free: 5.137 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches