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.001585/0.001584, allocations: 181.9 kB / 8.409 MB, free: 0.668 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.3 MB / 214.1 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 90.23 kB / 262.2 MB, free: 1.68 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.102/0.102, allocations: 12.61 MB / 322.7 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.715e-05/1.731e-05, allocations: 0 / 378.9 MB, free: 6.883 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3427, allocations: 50.36 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.486, allocations: 78.88 MB / 0.4962 GB, free: 3.438 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000351/0.4864, allocations: 79.95 kB / 0.4963 GB, free: 3.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01076/0.4972, allocations: 2.37 MB / 0.4986 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4972, allocations: 0 / 0.4986 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.404e-05/0.4973, allocations: 4 kB / 0.4986 GB, free: 0.9766 MB / 346.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.0006726/0.498, allocations: 410.2 kB / 0.499 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.498, allocations: 12.03 kB / 0.499 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.4981, allocations: 19.72 kB / 0.4991 GB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004776/0.4986, allocations: 235.7 kB / 0.4993 GB, free: 232 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.4987, allocations: 7.953 kB / 0.4993 GB, free: 224 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.4987, allocations: 7.984 kB / 0.4993 GB, free: 216 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001925/0.4989, allocations: 44.38 kB / 0.4993 GB, free: 172 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006189/0.4995, allocations: 250.9 kB / 0.4996 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.4996, allocations: 0 / 0.4996 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.4996, allocations: 0 / 0.4996 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4996, allocations: 4 kB / 0.4996 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007193/0.5003, allocations: 407.9 kB / 0.5 GB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004508/0.5008, allocations: 254.4 kB / 0.5002 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/0.501, allocations: 84.28 kB / 0.5003 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.5011, allocations: 4 kB / 0.5003 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/0.5011, allocations: 47.81 kB / 0.5004 GB, free: 14.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 3.977e-06/0.5011, allocations: 3.938 kB / 0.5004 GB, free: 14.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004351/0.5016, allocations: 129.3 kB / 0.5005 GB, free: 14.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.5018, allocations: 187.9 kB / 0.5007 GB, free: 14.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.502, allocations: 162.2 kB / 0.5008 GB, free: 14.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.502, allocations: 25.7 kB / 0.5008 GB, free: 14.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.5022, allocations: 167.1 kB / 0.501 GB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.147e-05/0.5022, allocations: 15.89 kB / 0.501 GB, free: 14.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-06/0.5022, allocations: 3.938 kB / 0.501 GB, free: 14.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.5024, allocations: 318.8 kB / 0.5013 GB, free: 13.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.611e-05/0.5025, allocations: 16 kB / 0.5013 GB, free: 13.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.5026, allocations: 123.5 kB / 0.5015 GB, free: 13.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.5028, allocations: 43.95 kB / 0.5015 GB, free: 13.67 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.5028, allocations: 4 kB / 0.5015 GB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003466/0.5031, allocations: 133.2 kB / 0.5016 GB, free: 13.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.5032, allocations: 8.531 kB / 0.5016 GB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.5032, allocations: 8 kB / 0.5016 GB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.5032, allocations: 4 kB / 0.5016 GB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.5035, allocations: 39.92 kB / 0.5017 GB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.5035, allocations: 11.94 kB / 0.5017 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001781/0.5037, allocations: 11.91 kB / 0.5017 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.5038, allocations: 12 kB / 0.5017 GB, free: 13.44 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.000129/0.5039, allocations: 112.9 kB / 0.5018 GB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003186/0.5042, allocations: 113.4 kB / 0.5019 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.272e-05/0.5043, allocations: 21.83 kB / 0.502 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.5044, allocations: 4 kB / 0.502 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5044, allocations: 3.938 kB / 0.502 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.5044, allocations: 7.953 kB / 0.502 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/0.5048, allocations: 198 kB / 0.5022 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.5048, allocations: 0 / 0.5022 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.5051, allocations: 47.91 kB / 0.5022 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.5051, allocations: 0 / 0.5022 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.5052, allocations: 4.031 kB / 0.5022 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.5052, allocations: 4 kB / 0.5022 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.5052, allocations: 4 kB / 0.5022 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004883/0.5057, allocations: 371.9 kB / 0.5026 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.5058, allocations: 104.9 kB / 0.5027 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.345e-05/0.5059, allocations: 8 kB / 0.5027 GB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.5062, allocations: 11.98 kB / 0.5027 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.5063, allocations: 4 kB / 0.5027 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.5063, allocations: 11.98 kB / 0.5027 GB, free: 12.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001539/0.5065, allocations: 124.1 kB / 0.5028 GB, free: 12.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5065, allocations: 0 / 0.5028 GB, free: 12.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004813/0.507, allocations: 19.94 kB / 0.5028 GB, free: 12.16 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.0001522/0.5071, allocations: 95.19 kB / 0.5029 GB, free: 12.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002877/0.5074, allocations: 88.61 kB / 0.503 GB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5075, allocations: 0 / 0.503 GB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.244e-05/0.5075, allocations: 8.25 kB / 0.503 GB, free: 11.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006756/0.5082, allocations: 87.45 kB / 0.5031 GB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006696/0.5089, allocations: 238.3 kB / 0.5033 GB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.5093, allocations: 0.7321 MB / 0.504 GB, free: 10.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.131e-05/0.5094, allocations: 19.42 kB / 0.5041 GB, free: 10.83 MB / 362.7 MB Notification: Performance of SimCode: time 9.71e-07/0.5094, allocations: 0 / 0.5041 GB, free: 10.83 MB / 362.7 MB Notification: Performance of Templates: time 0.005357/0.5148, allocations: 1.76 MB / 0.5058 GB, free: 9.078 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