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.001547/0.001547, allocations: 179.4 kB / 8.407 MB, free: 0.6719 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.098/2.098, allocations: 205.3 MB / 214.1 MB, free: 1.727 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.001117/0.001117, allocations: 90.64 kB / 262.2 MB, free: 1.676 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.1035/0.1035, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.452e-05/2.47e-05, allocations: 4 kB / 378.9 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3167, allocations: 50.36 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.4606, allocations: 78.88 MB / 0.4962 GB, free: 3.438 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.461, allocations: 75.95 kB / 0.4963 GB, free: 3.363 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009878/0.4709, allocations: 2.312 MB / 0.4986 GB, free: 1.043 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.4709, allocations: 0 / 0.4986 GB, free: 1.043 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.227e-05/0.471, allocations: 4 kB / 0.4986 GB, free: 1.039 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.0006562/0.4716, allocations: 410.3 kB / 0.499 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.4717, allocations: 12.03 kB / 0.499 GB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.139e-05/0.4718, allocations: 23.72 kB / 0.499 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.4722, allocations: 235.7 kB / 0.4992 GB, free: 292 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.4722, allocations: 7.953 kB / 0.4992 GB, free: 284 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.4723, allocations: 4 kB / 0.4992 GB, free: 280 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001891/0.4725, allocations: 48.38 kB / 0.4993 GB, free: 232 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005784/0.4731, allocations: 237.7 kB / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.4731, allocations: 0 / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.4731, allocations: 0 / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.4731, allocations: 4 kB / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007318/0.4739, allocations: 412 kB / 0.4999 GB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.4744, allocations: 250.5 kB / 0.5001 GB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.4746, allocations: 84.34 kB / 0.5002 GB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.4746, allocations: 4 kB / 0.5002 GB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.4747, allocations: 50.44 kB / 0.5003 GB, free: 15.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 3.216e-06/0.4747, allocations: 0 / 0.5003 GB, free: 15.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004352/0.4751, allocations: 129.3 kB / 0.5004 GB, free: 14.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.4753, allocations: 192 kB / 0.5006 GB, free: 14.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.4755, allocations: 158.1 kB / 0.5007 GB, free: 14.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.4756, allocations: 25.7 kB / 0.5008 GB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.591e-05/0.4757, allocations: 162.6 kB / 0.5009 GB, free: 14.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.4757, allocations: 15.83 kB / 0.5009 GB, free: 14.31 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/0.4757, allocations: 0 / 0.5009 GB, free: 14.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4759, allocations: 320.2 kB / 0.5012 GB, free: 13.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.808e-05/0.4759, allocations: 12 kB / 0.5013 GB, free: 13.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.4761, allocations: 122.5 kB / 0.5014 GB, free: 13.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.4762, allocations: 35.91 kB / 0.5014 GB, free: 13.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.4763, allocations: 8 kB / 0.5014 GB, free: 13.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003131/0.4766, allocations: 121.3 kB / 0.5015 GB, free: 13.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.4766, allocations: 9.281 kB / 0.5015 GB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.4766, allocations: 7.984 kB / 0.5015 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.4767, allocations: 8 kB / 0.5015 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.4769, allocations: 35.92 kB / 0.5016 GB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.477, allocations: 4 kB / 0.5016 GB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.4771, allocations: 11.91 kB / 0.5016 GB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.4772, allocations: 8 kB / 0.5016 GB, free: 13.55 MB / 362.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 () * 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 0.0001296/0.4773, allocations: 116.8 kB / 0.5017 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002942/0.4776, allocations: 109.4 kB / 0.5018 GB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.127e-05/0.4777, allocations: 29.86 kB / 0.5018 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4777, allocations: 4 kB / 0.5019 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4777, allocations: 0 / 0.5019 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.4778, allocations: 0 / 0.5019 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003547/0.4781, allocations: 186.1 kB / 0.502 GB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.4782, allocations: 0 / 0.502 GB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.4784, allocations: 43.91 kB / 0.5021 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/0.4785, allocations: 8.141 kB / 0.5021 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.4785, allocations: 0 / 0.5021 GB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.4785, allocations: 11.94 kB / 0.5021 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4785, allocations: 0 / 0.5021 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.479, allocations: 368.3 kB / 0.5024 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.4792, allocations: 112.8 kB / 0.5026 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.4792, allocations: 0 / 0.5026 GB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.4795, allocations: 20.08 kB / 0.5026 GB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.4795, allocations: 7.938 kB / 0.5026 GB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.4796, allocations: 7.984 kB / 0.5026 GB, free: 12.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001582/0.4797, allocations: 128.1 kB / 0.5027 GB, free: 12.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4797, allocations: 0 / 0.5027 GB, free: 12.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000462/0.4802, allocations: 16 kB / 0.5027 GB, free: 12.29 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 (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 0.0001508/0.4804, allocations: 95.19 kB / 0.5028 GB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002812/0.4807, allocations: 88.77 kB / 0.5029 GB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.4807, allocations: 0 / 0.5029 GB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.319e-05/0.4807, allocations: 12.06 kB / 0.5029 GB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006661/0.4814, allocations: 84.14 kB / 0.503 GB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.4831, allocations: 338.4 kB / 0.5033 GB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.4835, allocations: 0.728 MB / 0.504 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.778e-05/0.4836, allocations: 15.44 kB / 0.504 GB, free: 10.86 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.4836, allocations: 0 / 0.504 GB, free: 10.86 MB / 362.7 MB Notification: Performance of Templates: time 0.00509/0.4887, allocations: 1.71 MB / 0.5057 GB, free: 9.164 MB / 362.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/jenkins1/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