Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 182.9 kB / 7.845 MB, free: 1.168 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.254/1.254, allocations: 205.2 MB / 213.4 MB, free: 8.621 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009161/0.0009161, allocations: 93.38 kB / 261.4 MB, free: 5.074 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07095/0.07095, allocations: 12.59 MB / 322 MB, free: 10.33 MB / 274.8 MB Notification: Performance of FrontEnd - loaded program: time 7.074e-06/7.114e-06, allocations: 4 kB / 378.4 MB, free: 1.805 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1857, allocations: 50.37 MB / 428.8 MB, free: 57.66 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08231/0.2681, allocations: 77.66 MB / 0.4946 GB, free: 11.88 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.2684, allocations: 79.94 kB / 0.4946 GB, free: 11.8 MB / 354.8 MB Notification: Performance of FrontEnd: time 0.0036/0.272, allocations: 1.09 MB / 0.4957 GB, free: 10.71 MB / 354.8 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.272, allocations: 4 kB / 0.4957 GB, free: 10.71 MB / 354.8 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.0003265/0.2723, allocations: 354.3 kB / 0.496 GB, free: 10.32 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2724, allocations: 8.031 kB / 0.496 GB, free: 10.31 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.2724, allocations: 11.81 kB / 0.4961 GB, free: 10.3 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.2726, allocations: 186.8 kB / 0.4962 GB, free: 10.07 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.2727, allocations: 8 kB / 0.4962 GB, free: 10.07 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.2727, allocations: 0 / 0.4962 GB, free: 10.07 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.55e-05/0.2728, allocations: 20 kB / 0.4963 GB, free: 10.05 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.2729, allocations: 101 kB / 0.4964 GB, free: 9.93 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.273, allocations: 0 / 0.4964 GB, free: 9.93 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.273, allocations: 3.906 kB / 0.4964 GB, free: 9.926 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.273, allocations: 0 / 0.4964 GB, free: 9.926 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003233/0.2733, allocations: 250.3 kB / 0.4966 GB, free: 9.641 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.2735, allocations: 126.3 kB / 0.4967 GB, free: 9.477 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.563e-05/0.2735, allocations: 29.78 kB / 0.4968 GB, free: 9.441 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.2736, allocations: 7.906 kB / 0.4968 GB, free: 9.434 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.887e-05/0.2736, allocations: 34.5 kB / 0.4968 GB, free: 9.391 MB / 354.8 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.2736, allocations: 0 / 0.4968 GB, free: 9.391 MB / 354.8 MB Notification: Performance of matching and sorting (n=4): time 0.0001858/0.2738, allocations: 53.73 kB / 0.4968 GB, free: 9.332 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.2738, allocations: 81.09 kB / 0.4969 GB, free: 9.234 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.274, allocations: 128.2 kB / 0.497 GB, free: 9.102 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.274, allocations: 25.7 kB / 0.4971 GB, free: 9.07 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.274, allocations: 84.12 kB / 0.4971 GB, free: 8.984 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.319e-05/0.274, allocations: 4 kB / 0.4972 GB, free: 8.98 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-06/0.274, allocations: 0 / 0.4972 GB, free: 8.98 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.2742, allocations: 318.8 kB / 0.4975 GB, free: 8.66 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.584e-05/0.2742, allocations: 11.88 kB / 0.4975 GB, free: 8.648 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.727e-05/0.2742, allocations: 35.42 kB / 0.4975 GB, free: 8.602 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.069e-05/0.2742, allocations: 4 kB / 0.4975 GB, free: 8.598 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2742, allocations: 0 / 0.4975 GB, free: 8.598 MB / 354.8 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.456e-05/0.2743, allocations: 53.62 kB / 0.4976 GB, free: 8.539 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.2744, allocations: 7.906 kB / 0.4976 GB, free: 8.531 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.2744, allocations: 4 kB / 0.4976 GB, free: 8.527 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.2744, allocations: 4.125 kB / 0.4976 GB, free: 8.523 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-05/0.2745, allocations: 11.98 kB / 0.4976 GB, free: 8.512 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.2745, allocations: 0 / 0.4976 GB, free: 8.512 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.258e-05/0.2745, allocations: 4 kB / 0.4976 GB, free: 8.508 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.2745, allocations: 8 kB / 0.4976 GB, free: 8.5 MB / 354.8 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 6.305e-05/0.2746, allocations: 115.2 kB / 0.4977 GB, free: 8.383 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.809e-05/0.2747, allocations: 45.59 kB / 0.4977 GB, free: 8.332 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.2747, allocations: 16.12 kB / 0.4978 GB, free: 8.312 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2747, allocations: 3.906 kB / 0.4978 GB, free: 8.309 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2747, allocations: 0 / 0.4978 GB, free: 8.309 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.2747, allocations: 0 / 0.4978 GB, free: 8.309 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.2749, allocations: 150.2 kB / 0.4979 GB, free: 8.125 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.2749, allocations: 0 / 0.4979 GB, free: 8.125 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.124e-05/0.275, allocations: 11.98 kB / 0.4979 GB, free: 8.113 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.275, allocations: 0 / 0.4979 GB, free: 8.113 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.275, allocations: 0 / 0.4979 GB, free: 8.113 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.275, allocations: 0 / 0.4979 GB, free: 8.113 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.275, allocations: 11.91 kB / 0.4979 GB, free: 8.102 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001204/0.2751, allocations: 166 kB / 0.4981 GB, free: 7.914 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-05/0.2752, allocations: 93 kB / 0.4982 GB, free: 7.805 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.2752, allocations: 0 / 0.4982 GB, free: 7.805 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.788e-05/0.2753, allocations: 7.984 kB / 0.4982 GB, free: 7.797 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.8e-05/0.2753, allocations: 8 kB / 0.4982 GB, free: 7.789 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.2753, allocations: 4 kB / 0.4982 GB, free: 7.785 MB / 354.8 MB Notification: Performance of sort global known variables: time 6.307e-05/0.2754, allocations: 108.7 kB / 0.4983 GB, free: 7.68 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.0002209/0.2756, allocations: 4 kB / 0.4983 GB, free: 7.676 MB / 354.8 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 8.89e-05/0.2757, allocations: 91.25 kB / 0.4984 GB, free: 7.578 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 7.985e-05/0.2758, allocations: 23.92 kB / 0.4984 GB, free: 7.555 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2758, allocations: 0 / 0.4984 GB, free: 7.555 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 1.419e-05/0.2758, allocations: 4.25 kB / 0.4984 GB, free: 7.551 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.2761, allocations: 19.84 kB / 0.4984 GB, free: 7.535 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002436/0.2763, allocations: 108.4 kB / 0.4985 GB, free: 7.402 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002702/0.2766, allocations: 0.7071 MB / 0.4992 GB, free: 6.672 MB / 354.8 MB Notification: Performance of SimCode: time 2.5e-07/0.2766, allocations: 0 / 0.4992 GB, free: 6.672 MB / 354.8 MB Notification: Performance of Templates: time 0.00228/0.2789, allocations: 0.4914 MB / 0.4997 GB, free: 6.191 MB / 354.8 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches