Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00159/0.00159, allocations: 192.9 kB / 7.847 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008925/0.0008925, allocations: 90.36 kB / 261.5 MB, free: 13.62 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.06393/0.06393, allocations: 12.59 MB / 322 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.961e-06/6.322e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07679/0.07681, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.252/0.3289, allocations: 77.37 MB / 0.4943 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.3292, allocations: 78.89 kB / 0.4943 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003256/0.3324, allocations: 1.065 MB / 0.4954 GB, free: 11.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.3325, allocations: 0 / 0.4954 GB, free: 11.62 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0002782/0.3327, allocations: 360 kB / 0.4957 GB, free: 11.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.3328, allocations: 11.56 kB / 0.4957 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.3328, allocations: 7.75 kB / 0.4957 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.333, allocations: 199.2 kB / 0.4959 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.138e-06/0.333, allocations: 0 / 0.4959 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.333, allocations: 7.812 kB / 0.4959 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.948e-05/0.3331, allocations: 38.19 kB / 0.496 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.3334, allocations: 137.4 kB / 0.4961 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3334, allocations: 0 / 0.4961 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.3334, allocations: 4 kB / 0.4961 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3335, allocations: 3.875 kB / 0.4961 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000322/0.3338, allocations: 340 kB / 0.4964 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.334, allocations: 106.2 kB / 0.4965 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.669e-05/0.334, allocations: 49.09 kB / 0.4966 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.3341, allocations: 0.6094 kB / 0.4966 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.438e-05/0.3341, allocations: 43.05 kB / 0.4966 GB, free: 10.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.3341, allocations: 0 / 0.4966 GB, free: 10.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001913/0.3343, allocations: 85.77 kB / 0.4967 GB, free: 10.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.3343, allocations: 103.5 kB / 0.4968 GB, free: 10.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.685e-05/0.3344, allocations: 118.9 kB / 0.4969 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-06/0.3344, allocations: 29.48 kB / 0.497 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.123e-05/0.3345, allocations: 85.7 kB / 0.497 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.3345, allocations: 17 kB / 0.4971 GB, free: 10.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-06/0.3345, allocations: 0 / 0.4971 GB, free: 10.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.3345, allocations: 316.6 kB / 0.4974 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.854e-05/0.3346, allocations: 14.62 kB / 0.4974 GB, free: 9.777 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.374e-05/0.3346, allocations: 65 kB / 0.4974 GB, free: 9.699 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.872e-05/0.3346, allocations: 13.09 kB / 0.4974 GB, free: 9.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3346, allocations: 0.6562 kB / 0.4974 GB, free: 9.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001066/0.3348, allocations: 93.31 kB / 0.4975 GB, free: 9.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.3348, allocations: 6.969 kB / 0.4975 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3348, allocations: 8.328 kB / 0.4976 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.3348, allocations: 7.891 kB / 0.4976 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.465e-05/0.3349, allocations: 22.08 kB / 0.4976 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.3349, allocations: 4.516 kB / 0.4976 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.349e-05/0.335, allocations: 8.844 kB / 0.4976 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.335, allocations: 7.719 kB / 0.4976 GB, free: 9.633 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.441e-05/0.335, allocations: 109.5 kB / 0.4977 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3351, allocations: 66.56 kB / 0.4978 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.535e-05/0.3352, allocations: 12.78 kB / 0.4978 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3352, allocations: 0 / 0.4978 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3352, allocations: 4.672 kB / 0.4978 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3352, allocations: 0 / 0.4978 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.3354, allocations: 162.4 kB / 0.4979 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3354, allocations: 4.703 kB / 0.4979 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.857e-05/0.3355, allocations: 21.89 kB / 0.498 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3355, allocations: 3.812 kB / 0.498 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.3355, allocations: 0.6094 kB / 0.498 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3355, allocations: 0.5625 kB / 0.498 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3355, allocations: 3.844 kB / 0.498 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002278/0.3357, allocations: 323 kB / 0.4983 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.3358, allocations: 92.59 kB / 0.4984 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.3358, allocations: 4.484 kB / 0.4984 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.3359, allocations: 5.406 kB / 0.4984 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.336, allocations: 4.609 kB / 0.4984 GB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.336, allocations: 7.812 kB / 0.4984 GB, free: 8.934 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.217e-05/0.336, allocations: 101.5 kB / 0.4985 GB, free: 8.859 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002703/0.3363, allocations: 11.44 kB / 0.4985 GB, free: 8.855 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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 6.939e-05/0.3364, allocations: 95.2 kB / 0.4986 GB, free: 8.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.472e-05/0.3365, allocations: 46.61 kB / 0.4986 GB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3365, allocations: 0.5625 kB / 0.4986 GB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.367e-05/0.3365, allocations: 15.62 kB / 0.4986 GB, free: 8.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.3368, allocations: 42.62 kB / 0.4987 GB, free: 8.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002628/0.3371, allocations: 122.6 kB / 0.4988 GB, free: 8.648 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.3373, allocations: 0.7176 MB / 0.4995 GB, free: 7.941 MB / 330.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3373, allocations: 0 / 0.4995 GB, free: 7.941 MB / 330.7 MB Notification: Performance of Templates: time 0.002626/0.3399, allocations: 0.6199 MB / 0.5001 GB, free: 7.871 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches