Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00338/0.003384, allocations: 188.8 kB / 16.45 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.689/3.689, allocations: 205.4 MB / 222.6 MB, free: 13.74 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.001818/0.001818, allocations: 102.8 kB / 270.9 MB, free: 13.26 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1831/0.1831, allocations: 12.6 MB / 331.8 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 12.97 kB / 392 MB, free: 54.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1956, allocations: 50.37 MB / 442.3 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.001958/0.1976, allocations: 0.5542 MB / 442.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005887/0.1983, allocations: 111.7 kB / 443 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.1985, allocations: 3.938 kB / 443 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.1986, allocations: 11.98 kB / 443 MB, free: 10.91 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.1988, allocations: 7.875 kB / 443 MB, free: 10.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.1993, allocations: 31.97 kB / 443.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.1994, allocations: 35.91 kB / 443.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.1996, allocations: 15.98 kB / 443.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.352e-05/0.1997, allocations: 15.91 kB / 443.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.764e-05/0.1998, allocations: 11.94 kB / 443.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.1998, allocations: 4 kB / 443.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.043e-05/0.1999, allocations: 0 / 443.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.383e-05/0.2, allocations: 15.92 kB / 443.2 MB, free: 10.78 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.539e-05/0.2, allocations: 33.64 kB / 443.2 MB, free: 10.74 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.2002, allocations: 43.92 kB / 443.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2002, allocations: 0 / 443.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.799e-06/0.2002, allocations: 0 / 443.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2003, allocations: 3.938 kB / 443.2 MB, free: 10.69 MB / 282.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.0006638/0.2009, allocations: 367.9 kB / 443.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.201, allocations: 8.031 kB / 443.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.035e-05/0.2011, allocations: 7.906 kB / 443.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.2014, allocations: 194.9 kB / 443.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.2015, allocations: 3.953 kB / 443.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.2015, allocations: 8 kB / 443.8 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005294/0.2021, allocations: 139.2 kB / 444 MB, free: 9.879 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.2021, allocations: 0 / 444 MB, free: 9.879 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.2022, allocations: 7.984 kB / 444 MB, free: 9.871 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.2022, allocations: 0 / 444 MB, free: 9.871 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.2023, allocations: 20 kB / 444 MB, free: 9.852 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002195/0.2026, allocations: 173.6 kB / 444.1 MB, free: 9.633 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.2029, allocations: 78.64 kB / 444.2 MB, free: 9.547 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.2029, allocations: 4 kB / 444.2 MB, free: 9.543 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.203, allocations: 30.56 kB / 444.3 MB, free: 9.504 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 3.887e-06/0.203, allocations: 0 / 444.3 MB, free: 9.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004096/0.2034, allocations: 105.7 kB / 444.4 MB, free: 9.395 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.001e-05/0.2035, allocations: 63.31 kB / 444.4 MB, free: 9.32 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.2037, allocations: 145 kB / 444.6 MB, free: 9.168 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.2038, allocations: 25.7 kB / 444.6 MB, free: 9.137 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.723e-05/0.2039, allocations: 154.6 kB / 444.7 MB, free: 8.984 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.2039, allocations: 0 / 444.7 MB, free: 8.984 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/0.2039, allocations: 7.938 kB / 444.7 MB, free: 8.977 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.321e-05/0.204, allocations: 314.8 kB / 445.1 MB, free: 8.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.79e-05/0.2041, allocations: 11.98 kB / 445.1 MB, free: 8.648 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.886e-05/0.2042, allocations: 58.86 kB / 445.1 MB, free: 8.566 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.052e-05/0.2043, allocations: 23.94 kB / 445.1 MB, free: 8.543 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.2043, allocations: 0 / 445.1 MB, free: 8.543 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002815/0.2046, allocations: 97.3 kB / 445.2 MB, free: 8.441 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.2047, allocations: 11.98 kB / 445.3 MB, free: 8.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.2047, allocations: 320 / 445.3 MB, free: 8.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.022e-05/0.2048, allocations: 4 kB / 445.3 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.205, allocations: 12.25 kB / 445.3 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.205, allocations: 8 kB / 445.3 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.778e-05/0.2051, allocations: 4 kB / 445.3 MB, free: 8.402 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.2052, allocations: 7.984 kB / 445.3 MB, free: 8.395 MB / 282.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: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * 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 0.0002279/0.2054, allocations: 139.2 kB / 445.4 MB, free: 8.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002296/0.2057, allocations: 81.55 kB / 445.5 MB, free: 8.164 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.558e-05/0.2057, allocations: 16.7 kB / 445.5 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.2058, allocations: 0 / 445.5 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.2058, allocations: 0 / 445.5 MB, free: 8.145 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2058, allocations: 4 kB / 445.5 MB, free: 8.141 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.206, allocations: 169.7 kB / 445.7 MB, free: 7.926 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.206, allocations: 0 / 445.7 MB, free: 7.926 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.2062, allocations: 15.98 kB / 445.7 MB, free: 7.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.286e-06/0.2063, allocations: 0 / 445.7 MB, free: 7.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2063, allocations: 3.953 kB / 445.7 MB, free: 7.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.2063, allocations: 3.938 kB / 445.7 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2063, allocations: 0 / 445.7 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.2066, allocations: 117 kB / 445.8 MB, free: 7.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.2067, allocations: 93 kB / 445.9 MB, free: 7.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.2068, allocations: 8 kB / 445.9 MB, free: 7.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.994e-05/0.2069, allocations: 3.953 kB / 445.9 MB, free: 7.648 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-06/0.2069, allocations: 0 / 445.9 MB, free: 7.648 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.2069, allocations: 4 kB / 445.9 MB, free: 7.645 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001186/0.2071, allocations: 107.2 kB / 446 MB, free: 7.539 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.2071, allocations: 0 / 446 MB, free: 7.539 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000519/0.2076, allocations: 8 kB / 446.1 MB, free: 7.531 MB / 282.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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * 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.000174/0.2078, allocations: 99.44 kB / 446.1 MB, free: 7.422 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000265/0.2081, allocations: 51.84 kB / 446.2 MB, free: 7.371 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.2082, allocations: 7.875 kB / 446.2 MB, free: 7.363 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.084e-06/0.2082, allocations: 0 / 446.2 MB, free: 7.363 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.2087, allocations: 51.7 kB / 446.3 MB, free: 7.316 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006614/0.2094, allocations: 221.2 kB / 446.5 MB, free: 7.066 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.2097, allocations: 0.7054 MB / 447.2 MB, free: 6.336 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.482e-05/0.2098, allocations: 11.44 kB / 447.2 MB, free: 6.324 MB / 282.7 MB Notification: Performance of SimCode: time 1.753e-06/0.2098, allocations: 0 / 447.2 MB, free: 6.324 MB / 282.7 MB Notification: Performance of Templates: time 0.004723/0.2146, allocations: 0.8638 MB / 448.1 MB, free: 5.465 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches