Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") [: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.00214/0.00214, allocations: 173.8 kB / 8.192 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.96/1.96, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.001262/0.001262, allocations: 92.67 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.1446/0.1446, allocations: 12.59 MB / 322.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.666e-06/8.947e-06, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.08863, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2982/0.3869, allocations: 77.04 MB / 0.4939 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.3873, allocations: 80.88 kB / 0.494 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003697/0.391, allocations: 0.8073 MB / 0.4948 GB, free: 11.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.391, allocations: 3.938 kB / 0.4948 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.0003341/0.3914, allocations: 341.9 kB / 0.4951 GB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.3914, allocations: 7.688 kB / 0.4951 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.3915, allocations: 7.719 kB / 0.4951 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.3917, allocations: 191.9 kB / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.3917, allocations: 11.88 kB / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.3918, allocations: 0.5 kB / 0.4953 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.647e-05/0.3919, allocations: 16.8 kB / 0.4954 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.3921, allocations: 102.7 kB / 0.4955 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3921, allocations: 0 / 0.4955 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.3921, allocations: 0 / 0.4955 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3922, allocations: 4 kB / 0.4955 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003292/0.3925, allocations: 247.2 kB / 0.4957 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.3927, allocations: 137.2 kB / 0.4958 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.773e-05/0.3928, allocations: 21.12 kB / 0.4958 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.3928, allocations: 3.812 kB / 0.4958 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.3928, allocations: 35.86 kB / 0.4959 GB, free: 10.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.543e-06/0.3928, allocations: 0 / 0.4959 GB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001768/0.393, allocations: 55.69 kB / 0.4959 GB, free: 10.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.3931, allocations: 81.14 kB / 0.496 GB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.3932, allocations: 118.7 kB / 0.4961 GB, free: 10.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/0.3932, allocations: 25.7 kB / 0.4961 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.304e-05/0.3933, allocations: 150.6 kB / 0.4963 GB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.3933, allocations: 9.375 kB / 0.4963 GB, free: 10.13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-06/0.3933, allocations: 0 / 0.4963 GB, free: 10.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.606e-05/0.3934, allocations: 310.8 kB / 0.4966 GB, free: 9.816 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.611e-05/0.3934, allocations: 3.875 kB / 0.4966 GB, free: 9.816 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.652e-05/0.3934, allocations: 32.05 kB / 0.4966 GB, free: 9.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.411e-05/0.3935, allocations: 9.25 kB / 0.4966 GB, free: 9.777 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3935, allocations: 0 / 0.4966 GB, free: 9.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.117e-05/0.3936, allocations: 52.22 kB / 0.4967 GB, free: 9.742 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.3936, allocations: 10.22 kB / 0.4967 GB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.3936, allocations: 3.906 kB / 0.4967 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.3936, allocations: 3.781 kB / 0.4967 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.717e-05/0.3937, allocations: 9.188 kB / 0.4967 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.3938, allocations: 0 / 0.4967 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.812e-05/0.3938, allocations: 5.391 kB / 0.4967 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.3938, allocations: 3.906 kB / 0.4967 GB, free: 9.734 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: 0 () * 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.203e-05/0.3939, allocations: 25.7 kB / 0.4967 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-05/0.394, allocations: 59.81 kB / 0.4968 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.291e-05/0.394, allocations: 9.219 kB / 0.4968 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.394, allocations: 3.875 kB / 0.4968 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.394, allocations: 0 / 0.4968 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3941, allocations: 3.906 kB / 0.4968 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.3942, allocations: 141.3 kB / 0.497 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3942, allocations: 0 / 0.497 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.217e-05/0.3943, allocations: 14.02 kB / 0.497 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3943, allocations: 192 / 0.497 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.3944, allocations: 4 kB / 0.497 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3944, allocations: 0 / 0.497 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3944, allocations: 0 / 0.497 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001172/0.3945, allocations: 176.3 kB / 0.4971 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.924e-05/0.3946, allocations: 96.83 kB / 0.4972 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.3946, allocations: 0 / 0.4972 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.69e-05/0.3947, allocations: 13.31 kB / 0.4972 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.09e-05/0.3947, allocations: 3.938 kB / 0.4973 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.3948, allocations: 3.812 kB / 0.4973 GB, free: 9.207 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.276e-05/0.3948, allocations: 100.4 kB / 0.4974 GB, free: 9.133 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002506/0.3951, allocations: 3.875 kB / 0.4974 GB, free: 9.133 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: 0 () * 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.015e-05/0.3952, allocations: 98.59 kB / 0.4974 GB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.901e-05/0.3953, allocations: 20.66 kB / 0.4975 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3953, allocations: 4.062 kB / 0.4975 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.52e-05/0.3953, allocations: 0 / 0.4975 GB, free: 9.031 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.3957, allocations: 21.19 kB / 0.4975 GB, free: 9.027 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002925/0.396, allocations: 120.5 kB / 0.4976 GB, free: 8.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.3962, allocations: 0.7082 MB / 0.4983 GB, free: 8.203 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.3962, allocations: 0 / 0.4983 GB, free: 8.203 MB / 330.7 MB Notification: Performance of Templates: time 0.002381/0.3986, allocations: 0.6604 MB / 0.4989 GB, free: 8.176 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches