Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002275/0.002275, 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.031/2.031, allocations: 205.3 MB / 214.1 MB, free: 1.664 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.001083/0.001083, allocations: 90.47 kB / 262.2 MB, free: 1.613 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.09932/0.09932, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.489e-05/2.495e-05, allocations: 4 kB / 378.9 MB, free: 6.883 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3125, allocations: 50.36 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.448, allocations: 77.01 MB / 0.4944 GB, free: 5.305 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/0.4484, allocations: 71.95 kB / 0.4945 GB, free: 5.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004839/0.4532, allocations: 1.225 MB / 0.4957 GB, free: 4.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.598e-06/0.4533, allocations: 4 kB / 0.4957 GB, free: 4.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.4533, allocations: 7.938 kB / 0.4957 GB, free: 4 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004045/0.4538, allocations: 346.4 kB / 0.496 GB, free: 3.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.4538, allocations: 8.031 kB / 0.496 GB, free: 3.609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.459e-05/0.4539, allocations: 11.81 kB / 0.496 GB, free: 3.598 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.4541, allocations: 187 kB / 0.4962 GB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.4541, allocations: 3.938 kB / 0.4962 GB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.4542, allocations: 7.953 kB / 0.4962 GB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001025/0.4543, allocations: 16 kB / 0.4962 GB, free: 3.348 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.4546, allocations: 119.2 kB / 0.4964 GB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.4546, allocations: 0 / 0.4964 GB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.4546, allocations: 0 / 0.4964 GB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.4547, allocations: 0 / 0.4964 GB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001702/0.4548, allocations: 150.2 kB / 0.4965 GB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.455, allocations: 62.7 kB / 0.4966 GB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.341e-05/0.4551, allocations: 32.86 kB / 0.4966 GB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.4551, allocations: 3.953 kB / 0.4966 GB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.4552, allocations: 30.56 kB / 0.4966 GB, free: 2.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.713e-06/0.4552, allocations: 0 / 0.4966 GB, free: 2.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002155/0.4554, allocations: 73.73 kB / 0.4967 GB, free: 2.809 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.4555, allocations: 59.41 kB / 0.4968 GB, free: 2.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.4557, allocations: 113.2 kB / 0.4969 GB, free: 2.617 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.4557, allocations: 25.7 kB / 0.4969 GB, free: 2.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.849e-05/0.4558, allocations: 166.4 kB / 0.497 GB, free: 2.422 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.4558, allocations: 3.984 kB / 0.4971 GB, free: 2.418 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.4558, allocations: 0 / 0.4971 GB, free: 2.418 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4559, allocations: 310.8 kB / 0.4973 GB, free: 2.105 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.64e-05/0.456, allocations: 15.94 kB / 0.4974 GB, free: 2.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.708e-05/0.4561, allocations: 50.88 kB / 0.4974 GB, free: 2.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.025e-05/0.4561, allocations: 19.98 kB / 0.4974 GB, free: 1.996 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.4561, allocations: 4 kB / 0.4974 GB, free: 1.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001766/0.4563, allocations: 81.39 kB / 0.4975 GB, free: 1.906 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.4564, allocations: 4 kB / 0.4975 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.4564, allocations: 7.953 kB / 0.4975 GB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4564, allocations: 0 / 0.4975 GB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.4565, allocations: 19.98 kB / 0.4975 GB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.4566, allocations: 8.25 kB / 0.4976 GB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.361e-05/0.4566, allocations: 4 kB / 0.4976 GB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.4566, allocations: 4 kB / 0.4976 GB, free: 1.859 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.755e-05/0.4567, allocations: 104.9 kB / 0.4977 GB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.4569, allocations: 69.66 kB / 0.4977 GB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.442e-05/0.457, allocations: 12.62 kB / 0.4977 GB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.457, allocations: 3.953 kB / 0.4977 GB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.457, allocations: 0 / 0.4977 GB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.457, allocations: 0 / 0.4977 GB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.4571, allocations: 154.1 kB / 0.4979 GB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4572, allocations: 0 / 0.4979 GB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.929e-05/0.4573, allocations: 12 kB / 0.4979 GB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4573, allocations: 0 / 0.4979 GB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.4573, allocations: 4 kB / 0.4979 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.4573, allocations: 3.938 kB / 0.4979 GB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4573, allocations: 0 / 0.4979 GB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/0.4575, allocations: 96.98 kB / 0.498 GB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.897e-05/0.4576, allocations: 93 kB / 0.4981 GB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.4576, allocations: 4 kB / 0.4981 GB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.812e-05/0.4577, allocations: 0 / 0.4981 GB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.765e-06/0.4577, allocations: 3.984 kB / 0.4981 GB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.4577, allocations: 4 kB / 0.4981 GB, free: 1.215 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.286e-05/0.4578, allocations: 100.6 kB / 0.4982 GB, free: 1.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4578, allocations: 3.938 kB / 0.4982 GB, free: 1.113 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002846/0.4581, allocations: 15.94 kB / 0.4982 GB, free: 1.098 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 0.0001251/0.4583, allocations: 91.25 kB / 0.4983 GB, free: 1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.4584, allocations: 47.86 kB / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4584, allocations: 0 / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.022e-06/0.4584, allocations: 192 / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.4588, allocations: 39.33 kB / 0.4984 GB, free: 0.918 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00036/0.4592, allocations: 130.1 kB / 0.4985 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.4595, allocations: 0.704 MB / 0.4992 GB, free: 32 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/0.4596, allocations: 11.94 kB / 0.4992 GB, free: 20 kB / 346.7 MB Notification: Performance of SimCode: time 1.352e-06/0.4596, allocations: 4 kB / 0.4992 GB, free: 16 kB / 346.7 MB Notification: Performance of Templates: time 0.003039/0.4626, allocations: 0.7652 MB / 0.5 GB, free: 15.25 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches