Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002391/0.002391, allocations: 171.4 kB / 8.19 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.795/1.795, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001293/0.001292, allocations: 89.89 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0961/0.0961, allocations: 12.58 MB / 322.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.646e-06/8.807e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08462/0.08465, allocations: 50.37 MB / 428.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2923/0.377, allocations: 77.93 MB / 0.4948 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.3773, allocations: 82.83 kB / 0.4949 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01688/0.3942, allocations: 3.776 MB / 0.4986 GB, free: 11.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.3943, allocations: 3.812 kB / 0.4986 GB, free: 11.42 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004895/0.3948, allocations: 401.2 kB / 0.499 GB, free: 11.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3948, allocations: 7.688 kB / 0.499 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.886e-05/0.3949, allocations: 15.62 kB / 0.499 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.3952, allocations: 204.6 kB / 0.4992 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.3952, allocations: 3.969 kB / 0.4992 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.3953, allocations: 7.281 kB / 0.4992 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000189/0.3955, allocations: 48.05 kB / 0.4992 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.396, allocations: 239 kB / 0.4995 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.396, allocations: 0 / 0.4995 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.396, allocations: 0 / 0.4995 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.396, allocations: 3.781 kB / 0.4995 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.3965, allocations: 282.2 kB / 0.4997 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.3968, allocations: 128.6 kB / 0.4998 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.3969, allocations: 58.5 kB / 0.4999 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.397, allocations: 5.375 kB / 0.4999 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.397, allocations: 42.06 kB / 0.5 GB, free: 10.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 3.216e-06/0.397, allocations: 3.844 kB / 0.5 GB, free: 10.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003587/0.3974, allocations: 114.4 kB / 0.5001 GB, free: 10.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/0.3975, allocations: 119.4 kB / 0.5002 GB, free: 10.15 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.3976, allocations: 129.8 kB / 0.5003 GB, free: 10.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.3977, allocations: 25.7 kB / 0.5003 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.772e-05/0.3977, allocations: 156 kB / 0.5005 GB, free: 9.871 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.3978, allocations: 14.94 kB / 0.5005 GB, free: 9.867 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.3978, allocations: 3.938 kB / 0.5005 GB, free: 9.863 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.213e-05/0.3978, allocations: 324.2 kB / 0.5008 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.276e-05/0.3979, allocations: 15.59 kB / 0.5008 GB, free: 9.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.996e-05/0.398, allocations: 125.9 kB / 0.5009 GB, free: 9.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.792e-05/0.3981, allocations: 34 kB / 0.501 GB, free: 9.398 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.3981, allocations: 3.906 kB / 0.501 GB, free: 9.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003125/0.3985, allocations: 138.5 kB / 0.5011 GB, free: 9.344 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3985, allocations: 3.844 kB / 0.5011 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.3985, allocations: 3.906 kB / 0.5011 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.3985, allocations: 3.906 kB / 0.5011 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.3988, allocations: 36.39 kB / 0.5012 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.3988, allocations: 11.56 kB / 0.5012 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.3989, allocations: 17.31 kB / 0.5012 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.399, allocations: 7.625 kB / 0.5012 GB, free: 9.324 MB / 330.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: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.472e-05/0.3991, allocations: 42.7 kB / 0.5012 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002429/0.3993, allocations: 103.3 kB / 0.5013 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.239e-05/0.3994, allocations: 17.73 kB / 0.5013 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.3994, allocations: 3.719 kB / 0.5013 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3994, allocations: 3.906 kB / 0.5013 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.3994, allocations: 5.453 kB / 0.5014 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.3996, allocations: 162.8 kB / 0.5015 GB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3997, allocations: 4 kB / 0.5015 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.3999, allocations: 27.31 kB / 0.5015 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3999, allocations: 4.094 kB / 0.5015 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.3999, allocations: 4.922 kB / 0.5015 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.3999, allocations: 15.59 kB / 0.5016 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.3999, allocations: 0 / 0.5016 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000284/0.4002, allocations: 247.8 kB / 0.5018 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.172e-05/0.4003, allocations: 110.9 kB / 0.5019 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.4004, allocations: 3.969 kB / 0.5019 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.4005, allocations: 5.531 kB / 0.5019 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.4006, allocations: 0 / 0.5019 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.4006, allocations: 5.484 kB / 0.5019 GB, free: 8.762 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.969e-05/0.4007, allocations: 116 kB / 0.502 GB, free: 8.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003746/0.4011, allocations: 15.5 kB / 0.502 GB, free: 8.684 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * 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.0001262/0.4012, allocations: 103.9 kB / 0.5021 GB, free: 8.582 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000237/0.4015, allocations: 82.06 kB / 0.5022 GB, free: 8.574 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4015, allocations: 1.062 kB / 0.5022 GB, free: 8.574 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.322e-05/0.4015, allocations: 11.66 kB / 0.5022 GB, free: 8.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.4021, allocations: 70.03 kB / 0.5023 GB, free: 8.555 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005691/0.4026, allocations: 196.4 kB / 0.5025 GB, free: 8.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002555/0.4029, allocations: 0.7425 MB / 0.5032 GB, free: 7.703 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.4029, allocations: 0 / 0.5032 GB, free: 7.703 MB / 330.7 MB Notification: Performance of Templates: time 0.004099/0.407, allocations: 1.433 MB / 0.5046 GB, free: 7.605 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches