Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") [: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.001601/0.001601, allocations: 176.6 kB / 8.186 MB, free: 2.047 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.817/1.817, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001335/0.001335, allocations: 92.23 kB / 261.8 MB, free: 13.62 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.09782/0.09782, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.116e-06/8.405e-06, allocations: 0 / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08963/0.08966, allocations: 50.38 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3031/0.3928, allocations: 76.91 MB / 0.4938 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.3931, allocations: 75.69 kB / 0.4939 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003753/0.3969, allocations: 0.7951 MB / 0.4947 GB, free: 11.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.397, allocations: 7.969 kB / 0.4947 GB, free: 11.64 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003281/0.3973, allocations: 344.4 kB / 0.495 GB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3974, allocations: 8.672 kB / 0.495 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.131e-05/0.3974, allocations: 7.75 kB / 0.495 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.3976, allocations: 189 kB / 0.4952 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.3976, allocations: 7.844 kB / 0.4952 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.3977, allocations: 7.844 kB / 0.4952 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.754e-05/0.3978, allocations: 15.03 kB / 0.4952 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.398, allocations: 98.06 kB / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.398, allocations: 0 / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.398, allocations: 0 / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.398, allocations: 3.938 kB / 0.4953 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003323/0.3984, allocations: 247.4 kB / 0.4955 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.3986, allocations: 135.1 kB / 0.4957 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.056e-05/0.3987, allocations: 24.03 kB / 0.4957 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.3987, allocations: 0 / 0.4957 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.3987, allocations: 34.89 kB / 0.4957 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.643e-06/0.3987, allocations: 0 / 0.4957 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001842/0.3989, allocations: 54.72 kB / 0.4958 GB, free: 10.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.399, allocations: 78.52 kB / 0.4959 GB, free: 10.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.3991, allocations: 125 kB / 0.496 GB, free: 10.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.3991, allocations: 25.7 kB / 0.496 GB, free: 10.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/0.3992, allocations: 157.7 kB / 0.4962 GB, free: 10.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.281e-05/0.3992, allocations: 1.5 kB / 0.4962 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.3992, allocations: 3.938 kB / 0.4962 GB, free: 10.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.11e-05/0.3993, allocations: 314.7 kB / 0.4965 GB, free: 9.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.702e-05/0.3993, allocations: 3.312 kB / 0.4965 GB, free: 9.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.037e-05/0.3994, allocations: 32.41 kB / 0.4965 GB, free: 9.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.599e-05/0.3994, allocations: 7.922 kB / 0.4965 GB, free: 9.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3994, allocations: 0 / 0.4965 GB, free: 9.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.317e-05/0.3995, allocations: 51.53 kB / 0.4965 GB, free: 9.746 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.3995, allocations: 3.906 kB / 0.4966 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3996, allocations: 10.78 kB / 0.4966 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3996, allocations: 4 kB / 0.4966 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.989e-05/0.3997, allocations: 10.36 kB / 0.4966 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.3997, allocations: 0.7812 kB / 0.4966 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.792e-05/0.3998, allocations: 5.203 kB / 0.4966 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.3998, allocations: 3.844 kB / 0.4966 GB, free: 9.738 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.49e-05/0.3999, allocations: 25.7 kB / 0.4966 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.397e-05/0.4, allocations: 51.84 kB / 0.4967 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.651e-05/0.4, allocations: 13.08 kB / 0.4967 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.4, allocations: 0 / 0.4967 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.4, allocations: 0 / 0.4967 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4001, allocations: 7.781 kB / 0.4967 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.4002, allocations: 145.5 kB / 0.4968 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4002, allocations: 0 / 0.4968 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.398e-05/0.4003, allocations: 9.406 kB / 0.4968 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.4004, allocations: 0 / 0.4968 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.4004, allocations: 0 / 0.4968 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.4004, allocations: 7.969 kB / 0.4968 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4004, allocations: 0 / 0.4968 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001186/0.4005, allocations: 170.7 kB / 0.497 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.4006, allocations: 95.52 kB / 0.4971 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.4006, allocations: 7.922 kB / 0.4971 GB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.632e-05/0.4007, allocations: 13.45 kB / 0.4971 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.4008, allocations: 3.812 kB / 0.4971 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.4008, allocations: 0 / 0.4971 GB, free: 9.215 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.838e-05/0.4009, allocations: 103 kB / 0.4972 GB, free: 9.141 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002725/0.4011, allocations: 3.844 kB / 0.4972 GB, free: 9.141 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 9.361e-05/0.4012, allocations: 100.1 kB / 0.4973 GB, free: 9.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.4014, allocations: 19.31 kB / 0.4973 GB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4014, allocations: 256 / 0.4973 GB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.621e-05/0.4014, allocations: 7.844 kB / 0.4973 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.4017, allocations: 18.3 kB / 0.4974 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002992/0.4021, allocations: 128.1 kB / 0.4975 GB, free: 8.906 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.4023, allocations: 0.7042 MB / 0.4982 GB, free: 8.203 MB / 330.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4023, allocations: 0 / 0.4982 GB, free: 8.203 MB / 330.7 MB Notification: Performance of Templates: time 0.002408/0.4047, allocations: 0.6692 MB / 0.4988 GB, free: 8.172 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches