Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.001629/0.001629, allocations: 172.4 kB / 8.187 MB, free: 2.188 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.784/1.784, 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.001237/0.001236, allocations: 91.02 kB / 261.8 MB, free: 13.64 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.09714/0.09714, allocations: 12.59 MB / 322.3 MB, free: 1 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.767e-05/1.785e-05, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09024, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3161/0.4064, allocations: 77.66 MB / 0.4945 GB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.4067, allocations: 73.53 kB / 0.4946 GB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005219/0.412, allocations: 1.086 MB / 0.4957 GB, free: 11.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.4121, allocations: 7.75 kB / 0.4957 GB, free: 11.72 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.0003622/0.4124, allocations: 350.9 kB / 0.496 GB, free: 11.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.4125, allocations: 8.5 kB / 0.496 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.4125, allocations: 12.56 kB / 0.496 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.4128, allocations: 194.5 kB / 0.4962 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.4128, allocations: 0 / 0.4962 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.4128, allocations: 7.812 kB / 0.4962 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.27e-05/0.4129, allocations: 12.89 kB / 0.4962 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.4131, allocations: 107.5 kB / 0.4963 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.4132, allocations: 4 kB / 0.4963 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.4132, allocations: 3.906 kB / 0.4964 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.4132, allocations: 3.875 kB / 0.4964 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003637/0.4136, allocations: 245.3 kB / 0.4966 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.4138, allocations: 134.8 kB / 0.4967 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.822e-05/0.4139, allocations: 26.66 kB / 0.4967 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.4139, allocations: 3.906 kB / 0.4967 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.4139, allocations: 35.39 kB / 0.4968 GB, free: 10.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.703e-06/0.4139, allocations: 0 / 0.4968 GB, free: 10.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001948/0.4141, allocations: 60.2 kB / 0.4968 GB, free: 10.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.4142, allocations: 78.23 kB / 0.4969 GB, free: 10.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.4143, allocations: 120.7 kB / 0.497 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.4143, allocations: 29.52 kB / 0.4971 GB, free: 10.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.401e-05/0.4144, allocations: 150.6 kB / 0.4972 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.694e-05/0.4144, allocations: 1.266 kB / 0.4972 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.4144, allocations: 0 / 0.4972 GB, free: 10.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.167e-05/0.4145, allocations: 315.8 kB / 0.4975 GB, free: 9.895 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.186e-05/0.4145, allocations: 11.59 kB / 0.4975 GB, free: 9.891 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.169e-05/0.4146, allocations: 24.44 kB / 0.4975 GB, free: 9.859 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.326e-05/0.4146, allocations: 12.64 kB / 0.4975 GB, free: 9.855 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4146, allocations: 0 / 0.4975 GB, free: 9.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001083/0.4147, allocations: 56.08 kB / 0.4976 GB, free: 9.816 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.4148, allocations: 6.219 kB / 0.4976 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4148, allocations: 4.422 kB / 0.4976 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.4148, allocations: 0 / 0.4976 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.4149, allocations: 9.938 kB / 0.4976 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.4149, allocations: 4.422 kB / 0.4976 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.415, allocations: 9.188 kB / 0.4976 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.415, allocations: 0 / 0.4976 GB, free: 9.812 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.365e-05/0.4151, allocations: 37.42 kB / 0.4977 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/0.4152, allocations: 47.69 kB / 0.4977 GB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.4152, allocations: 13.53 kB / 0.4977 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.4152, allocations: 0 / 0.4977 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4153, allocations: 4.922 kB / 0.4977 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.4153, allocations: 0 / 0.4977 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.4154, allocations: 149.9 kB / 0.4979 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.4155, allocations: 0 / 0.4979 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.256e-05/0.4156, allocations: 10.02 kB / 0.4979 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.4156, allocations: 7.812 kB / 0.4979 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.4156, allocations: 7.688 kB / 0.4979 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.4156, allocations: 0 / 0.4979 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.4156, allocations: 1.125 kB / 0.4979 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001338/0.4158, allocations: 176.6 kB / 0.4981 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.4158, allocations: 92.95 kB / 0.4982 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.4159, allocations: 5.547 kB / 0.4982 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.416, allocations: 3.969 kB / 0.4982 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.447e-05/0.4161, allocations: 1.266 kB / 0.4982 GB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.4161, allocations: 3.844 kB / 0.4982 GB, free: 9.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.983e-05/0.4162, allocations: 103.2 kB / 0.4983 GB, free: 9.211 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002576/0.4164, allocations: 3.875 kB / 0.4983 GB, free: 9.211 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.522e-05/0.4165, allocations: 98.19 kB / 0.4984 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001082/0.4167, allocations: 28.39 kB / 0.4984 GB, free: 9.113 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4167, allocations: 0 / 0.4984 GB, free: 9.113 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.121e-05/0.4167, allocations: 3.75 kB / 0.4984 GB, free: 9.113 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.417, allocations: 14.92 kB / 0.4984 GB, free: 9.113 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003393/0.4174, allocations: 132 kB / 0.4985 GB, free: 8.992 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001948/0.4176, allocations: 0.7059 MB / 0.4992 GB, free: 8.289 MB / 330.7 MB Notification: Performance of SimCode: time 6.82e-07/0.4176, allocations: 4.312 kB / 0.4992 GB, free: 8.285 MB / 330.7 MB Notification: Performance of Templates: time 0.002598/0.4202, allocations: 0.7208 MB / 0.4999 GB, free: 8.254 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches