Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001526/0.001525, allocations: 177.8 kB / 8.403 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.3 MB / 214.1 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 82.7 kB / 262.1 MB, free: 1.676 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.101/0.101, allocations: 12.58 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.768e-05/1.741e-05, allocations: 4 kB / 378.9 MB, free: 6.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3164, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.4595, allocations: 78.08 MB / 0.4955 GB, free: 4.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.4599, allocations: 75.95 kB / 0.4955 GB, free: 4.156 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006642/0.4665, allocations: 1.619 MB / 0.4971 GB, free: 2.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4666, allocations: 3.938 kB / 0.4971 GB, free: 2.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.4666, allocations: 0 / 0.4971 GB, free: 2.531 MB / 346.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.0004925/0.4671, allocations: 374.2 kB / 0.4975 GB, free: 2.121 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.4672, allocations: 8.031 kB / 0.4975 GB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.172e-05/0.4672, allocations: 15.91 kB / 0.4975 GB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.4675, allocations: 195.8 kB / 0.4977 GB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.4675, allocations: 3.984 kB / 0.4977 GB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.4676, allocations: 4 kB / 0.4977 GB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001342/0.4677, allocations: 24 kB / 0.4977 GB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.468, allocations: 125 kB / 0.4978 GB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.4681, allocations: 3.938 kB / 0.4978 GB, free: 1.691 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.4681, allocations: 0 / 0.4978 GB, free: 1.691 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.4681, allocations: 0 / 0.4978 GB, free: 1.691 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005779/0.4687, allocations: 286.2 kB / 0.4981 GB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.4689, allocations: 142.3 kB / 0.4983 GB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.727e-05/0.469, allocations: 37.89 kB / 0.4983 GB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.4691, allocations: 0 / 0.4983 GB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001203/0.4692, allocations: 51.41 kB / 0.4983 GB, free: 1.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.4692, allocations: 4 kB / 0.4983 GB, free: 1.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002557/0.4695, allocations: 81.53 kB / 0.4984 GB, free: 1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.4696, allocations: 89.12 kB / 0.4985 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.4697, allocations: 127.2 kB / 0.4986 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.4698, allocations: 25.7 kB / 0.4987 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.087e-05/0.4699, allocations: 158.5 kB / 0.4988 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.4699, allocations: 19.8 kB / 0.4988 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.4699, allocations: 0 / 0.4988 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4701, allocations: 322.8 kB / 0.4991 GB, free: 240 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.4701, allocations: 12 kB / 0.4991 GB, free: 228 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.485e-05/0.4702, allocations: 53.14 kB / 0.4992 GB, free: 156 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.95e-05/0.4703, allocations: 23.94 kB / 0.4992 GB, free: 132 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4703, allocations: 0 / 0.4992 GB, free: 132 kB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002114/0.4705, allocations: 89.52 kB / 0.4993 GB, free: 36 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.4706, allocations: 8 kB / 0.4993 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.4706, allocations: 0 / 0.4993 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.4706, allocations: 3.938 kB / 0.4993 GB, free: 24 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.4708, allocations: 23.92 kB / 0.4993 GB, free: 0 / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.974e-05/0.4708, allocations: 4.047 kB / 0.4993 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.979e-05/0.4709, allocations: 8.156 kB / 0.4993 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.4709, allocations: 4 kB / 0.4993 GB, free: 15.98 MB / 362.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 9.642e-05/0.471, allocations: 108.3 kB / 0.4995 GB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.005e-05/0.4711, allocations: 57.48 kB / 0.4995 GB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.4712, allocations: 16.34 kB / 0.4995 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.4712, allocations: 0 / 0.4995 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.4712, allocations: 3.984 kB / 0.4995 GB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4713, allocations: 0 / 0.4995 GB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003923/0.4717, allocations: 311.2 kB / 0.4998 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.4717, allocations: 0 / 0.4998 GB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.968e-05/0.4718, allocations: 11.94 kB / 0.4998 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4718, allocations: 192 / 0.4998 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.4718, allocations: 8 kB / 0.4998 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.4718, allocations: 3.984 kB / 0.4998 GB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4719, allocations: 0 / 0.4998 GB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.4721, allocations: 201.8 kB / 0.5 GB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.635e-05/0.4722, allocations: 104.9 kB / 0.5001 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.4723, allocations: 0 / 0.5001 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.4724, allocations: 4 kB / 0.5001 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.4725, allocations: 4 kB / 0.5001 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.4725, allocations: 11.94 kB / 0.5002 GB, free: 15.06 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.777e-05/0.4726, allocations: 104 kB / 0.5003 GB, free: 14.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4726, allocations: 0 / 0.5003 GB, free: 14.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003451/0.473, allocations: 16 kB / 0.5003 GB, free: 14.94 MB / 362.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 0.0001509/0.4731, allocations: 95.03 kB / 0.5004 GB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001847/0.4733, allocations: 47.94 kB / 0.5004 GB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4733, allocations: 3.938 kB / 0.5004 GB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.434e-05/0.4734, allocations: 15.98 kB / 0.5004 GB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.4738, allocations: 16.03 kB / 0.5004 GB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004146/0.4742, allocations: 159 kB / 0.5006 GB, free: 14.56 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.4745, allocations: 0.708 MB / 0.5013 GB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.4746, allocations: 19.44 kB / 0.5013 GB, free: 13.81 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4746, allocations: 0 / 0.5013 GB, free: 13.81 MB / 362.7 MB Notification: Performance of Templates: time 0.003447/0.4781, allocations: 1.007 MB / 0.5023 GB, free: 12.81 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches