Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001026/0.001025, allocations: 177.6 kB / 8.045 MB, free: 1.027 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.472/1.472, allocations: 205.3 MB / 213.8 MB, free: 1.75 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.0008076/0.0008076, allocations: 95.86 kB / 261.8 MB, free: 1.684 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.06706/0.06706, allocations: 12.59 MB / 322.3 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.299e-05/1.301e-05, allocations: 4 kB / 378.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2131, allocations: 50.38 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09212/0.3052, allocations: 77 MB / 0.4944 GB, free: 5.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.3055, allocations: 75.95 kB / 0.4945 GB, free: 5.168 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002961/0.3085, allocations: 1.229 MB / 0.4957 GB, free: 3.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.3085, allocations: 0 / 0.4957 GB, free: 3.941 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.3085, allocations: 3.938 kB / 0.4957 GB, free: 3.938 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.000337/0.3089, allocations: 346.4 kB / 0.496 GB, free: 3.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3089, allocations: 12.03 kB / 0.4961 GB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.309, allocations: 11.81 kB / 0.4961 GB, free: 3.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.3091, allocations: 175 kB / 0.4962 GB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.3092, allocations: 4 kB / 0.4962 GB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.3092, allocations: 7.953 kB / 0.4962 GB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.229e-05/0.3093, allocations: 23.94 kB / 0.4963 GB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.3095, allocations: 115.2 kB / 0.4964 GB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3095, allocations: 0 / 0.4964 GB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3095, allocations: 3.984 kB / 0.4964 GB, free: 3.156 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3096, allocations: 4 kB / 0.4964 GB, free: 3.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.3097, allocations: 150.2 kB / 0.4965 GB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.3098, allocations: 62.66 kB / 0.4966 GB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.889e-05/0.3099, allocations: 40.92 kB / 0.4966 GB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.3099, allocations: 7.953 kB / 0.4966 GB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.31, allocations: 30.56 kB / 0.4967 GB, free: 2.809 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.31, allocations: 4 kB / 0.4967 GB, free: 2.805 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001692/0.3102, allocations: 65.64 kB / 0.4967 GB, free: 2.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.3102, allocations: 55.41 kB / 0.4968 GB, free: 2.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.3103, allocations: 121.2 kB / 0.4969 GB, free: 2.539 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.3103, allocations: 25.7 kB / 0.4969 GB, free: 2.508 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.097e-05/0.3104, allocations: 88.08 kB / 0.497 GB, free: 2.418 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.342e-05/0.3104, allocations: 4 kB / 0.497 GB, free: 2.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-06/0.3104, allocations: 0 / 0.497 GB, free: 2.414 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3106, allocations: 322.8 kB / 0.4973 GB, free: 2.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.942e-05/0.3106, allocations: 11.94 kB / 0.4973 GB, free: 2.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.126e-05/0.3106, allocations: 50.88 kB / 0.4974 GB, free: 2.004 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.362e-05/0.3107, allocations: 19.98 kB / 0.4974 GB, free: 1.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.3107, allocations: 4 kB / 0.4974 GB, free: 1.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001068/0.3108, allocations: 73.47 kB / 0.4975 GB, free: 1.902 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3108, allocations: 4 kB / 0.4975 GB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3108, allocations: 8.203 kB / 0.4975 GB, free: 1.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.3109, allocations: 4 kB / 0.4975 GB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.274e-05/0.311, allocations: 19.94 kB / 0.4975 GB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.311, allocations: 3.984 kB / 0.4975 GB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.265e-05/0.311, allocations: 4 kB / 0.4975 GB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.311, allocations: 4 kB / 0.4975 GB, free: 1.855 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 7.638e-05/0.3111, allocations: 104.9 kB / 0.4976 GB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.549e-05/0.3112, allocations: 65.59 kB / 0.4977 GB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.943e-05/0.3112, allocations: 12.62 kB / 0.4977 GB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3112, allocations: 3.953 kB / 0.4977 GB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.3113, allocations: 4 kB / 0.4977 GB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3113, allocations: 0 / 0.4977 GB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.3114, allocations: 154.1 kB / 0.4979 GB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3114, allocations: 0 / 0.4979 GB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.328e-05/0.3114, allocations: 19.98 kB / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3114, allocations: 0 / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.741e-06/0.3115, allocations: 0 / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3115, allocations: 0 / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3115, allocations: 4 kB / 0.4979 GB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.3116, allocations: 105.1 kB / 0.498 GB, free: 1.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/0.3117, allocations: 89 kB / 0.4981 GB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.3117, allocations: 3.938 kB / 0.4981 GB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.597e-05/0.3117, allocations: 4 kB / 0.4981 GB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-06/0.3117, allocations: 0 / 0.4981 GB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.3117, allocations: 4 kB / 0.4981 GB, free: 1.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.643e-05/0.3118, allocations: 100.7 kB / 0.4982 GB, free: 1.105 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3118, allocations: 3.938 kB / 0.4982 GB, free: 1.102 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001871/0.312, allocations: 7.953 kB / 0.4982 GB, free: 1.094 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.0001164/0.3121, allocations: 99.23 kB / 0.4983 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.412e-05/0.3122, allocations: 35.94 kB / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3122, allocations: 0 / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.3122, allocations: 0 / 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.0002279/0.3125, allocations: 35.34 kB / 0.4983 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002373/0.3127, allocations: 108.4 kB / 0.4984 GB, free: 0.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.313, allocations: 0.7045 MB / 0.4991 GB, free: 64 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.735e-05/0.3131, allocations: 7.984 kB / 0.4991 GB, free: 56 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.575e-05/0.3131, allocations: 11.44 kB / 0.4992 GB, free: 44 kB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3131, allocations: 0 / 0.4992 GB, free: 44 kB / 346.7 MB Notification: Performance of Templates: time 0.002188/0.3153, allocations: 0.5253 MB / 0.4997 GB, free: 15.52 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches