Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") [: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.001479/0.00148, allocations: 188.6 kB / 7.842 MB, free: 2.473 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.272/1.272, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.001049/0.001049, allocations: 86.84 kB / 261.5 MB, free: 13.55 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.0711/0.0711, allocations: 12.6 MB / 322 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.856e-06/9.127e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2888/0.3986, allocations: 78 MB / 0.4949 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/0.3988, allocations: 77.55 kB / 0.495 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004049/0.4029, allocations: 1.291 MB / 0.4962 GB, free: 11.69 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.4029, allocations: 7.781 kB / 0.4962 GB, free: 11.69 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.0003199/0.4033, allocations: 368.3 kB / 0.4966 GB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.4033, allocations: 8.188 kB / 0.4966 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.96e-05/0.4033, allocations: 12.62 kB / 0.4966 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.4035, allocations: 200.3 kB / 0.4968 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.4035, allocations: 0.5156 kB / 0.4968 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.4035, allocations: 3.844 kB / 0.4968 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.099e-05/0.4036, allocations: 28.53 kB / 0.4968 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.4038, allocations: 119 kB / 0.4969 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.4038, allocations: 0 / 0.4969 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.4039, allocations: 4.594 kB / 0.4969 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4039, allocations: 0 / 0.4969 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003752/0.4043, allocations: 287.2 kB / 0.4972 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00016/0.4044, allocations: 143.5 kB / 0.4974 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.589e-05/0.4045, allocations: 34.33 kB / 0.4974 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.4045, allocations: 3.844 kB / 0.4974 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.4046, allocations: 58.69 kB / 0.4974 GB, free: 10.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.4046, allocations: 0 / 0.4974 GB, free: 10.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001611/0.4048, allocations: 78.39 kB / 0.4975 GB, free: 10.53 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.4048, allocations: 81.09 kB / 0.4976 GB, free: 10.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.217e-05/0.4049, allocations: 136.9 kB / 0.4977 GB, free: 10.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.4049, allocations: 27.44 kB / 0.4978 GB, free: 10.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.304e-05/0.4049, allocations: 93 kB / 0.4978 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.405, allocations: 13.14 kB / 0.4979 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.405, allocations: 0 / 0.4979 GB, free: 10.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.285e-05/0.405, allocations: 321.6 kB / 0.4982 GB, free: 9.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.835e-05/0.4051, allocations: 15.47 kB / 0.4982 GB, free: 9.891 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.032e-05/0.4051, allocations: 56.95 kB / 0.4982 GB, free: 9.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.895e-05/0.4051, allocations: 14.75 kB / 0.4982 GB, free: 9.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4051, allocations: 7.469 kB / 0.4983 GB, free: 9.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001181/0.4053, allocations: 89.89 kB / 0.4983 GB, free: 9.793 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.4053, allocations: 11.5 kB / 0.4983 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.4053, allocations: 0 / 0.4983 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.4053, allocations: 3.812 kB / 0.4984 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.519e-05/0.4054, allocations: 25.31 kB / 0.4984 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.4054, allocations: 0 / 0.4984 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.88e-05/0.4055, allocations: 5.031 kB / 0.4984 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.4055, allocations: 3.75 kB / 0.4984 GB, free: 9.781 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 5.49e-05/0.4056, allocations: 118 kB / 0.4985 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.4056, allocations: 55.78 kB / 0.4986 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.581e-05/0.4057, allocations: 13.33 kB / 0.4986 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4057, allocations: 0 / 0.4986 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4057, allocations: 0 / 0.4986 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4057, allocations: 0 / 0.4986 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.4059, allocations: 296.8 kB / 0.4988 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4059, allocations: 3.875 kB / 0.4988 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.726e-05/0.406, allocations: 19.5 kB / 0.4989 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.406, allocations: 0 / 0.4989 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.406, allocations: 4 kB / 0.4989 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.406, allocations: 7.75 kB / 0.4989 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.406, allocations: 1.547 kB / 0.4989 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001192/0.4062, allocations: 190 kB / 0.4991 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.426e-05/0.4062, allocations: 100.9 kB / 0.4992 GB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.4062, allocations: 9.062 kB / 0.4992 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.4063, allocations: 1.359 kB / 0.4992 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.4064, allocations: 5.453 kB / 0.4992 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.4064, allocations: 3.906 kB / 0.4992 GB, free: 9.074 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.15e-05/0.4064, allocations: 106 kB / 0.4993 GB, free: 9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002372/0.4067, allocations: 11.22 kB / 0.4993 GB, free: 9 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: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.109e-05/0.4068, allocations: 95.81 kB / 0.4994 GB, free: 8.914 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001089/0.4069, allocations: 52.11 kB / 0.4994 GB, free: 8.906 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4069, allocations: 0 / 0.4994 GB, free: 8.906 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.246e-05/0.407, allocations: 18.94 kB / 0.4994 GB, free: 8.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.4073, allocations: 34.25 kB / 0.4995 GB, free: 8.891 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002962/0.4076, allocations: 122.4 kB / 0.4996 GB, free: 8.797 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.4078, allocations: 0.7254 MB / 0.5003 GB, free: 8.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4078, allocations: 4 kB / 0.5003 GB, free: 8.086 MB / 330.7 MB Notification: Performance of Templates: time 0.002839/0.4106, allocations: 0.778 MB / 0.5011 GB, free: 8.004 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches