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.001276/0.001276, allocations: 177.5 kB / 16.77 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0008112/0.0008108, allocations: 100.9 kB / 271.3 MB, free: 8.23 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.0809/0.0809, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004169/0.0004169, allocations: 16 kB / 392.6 MB, free: 66.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.09887, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.001093/0.1, allocations: 0.5551 MB / 443.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003093/0.1004, allocations: 115.7 kB / 443.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.453e-05/0.1005, allocations: 7.938 kB / 443.6 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.1006, allocations: 7.984 kB / 443.6 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.1008, allocations: 7.938 kB / 443.6 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.101, allocations: 31.91 kB / 443.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.1011, allocations: 43.91 kB / 443.7 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1013, allocations: 20 kB / 443.7 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.921e-05/0.1013, allocations: 11.92 kB / 443.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.6e-05/0.1014, allocations: 19.86 kB / 443.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.1014, allocations: 4 kB / 443.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.1014, allocations: 0 / 443.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.586e-05/0.1015, allocations: 11.92 kB / 443.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.1015, allocations: 61.5 kB / 443.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.014e-05/0.1016, allocations: 35.94 kB / 443.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1016, allocations: 0 / 443.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1016, allocations: 0 / 443.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1016, allocations: 0 / 443.9 MB, free: 15.18 MB / 298.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.000412/0.1021, allocations: 359.5 kB / 444.2 MB, free: 14.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1021, allocations: 8.031 kB / 444.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.069e-05/0.1021, allocations: 8.844 kB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.1023, allocations: 201 kB / 444.4 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.1023, allocations: 8.375 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.1024, allocations: 8.375 kB / 444.5 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.1026, allocations: 135.7 kB / 444.6 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1026, allocations: 192 / 444.6 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.1027, allocations: 3.938 kB / 444.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1027, allocations: 0 / 444.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.551e-05/0.1027, allocations: 23.98 kB / 444.6 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001119/0.1028, allocations: 177.6 kB / 444.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.103, allocations: 70.66 kB / 444.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.891e-05/0.1031, allocations: 48.86 kB / 444.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.1031, allocations: 7.984 kB / 444.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.1031, allocations: 30.56 kB / 445 MB, free: 13.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.1031, allocations: 4 kB / 445 MB, free: 13.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.000191/0.1033, allocations: 109.6 kB / 445.1 MB, free: 13.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.1034, allocations: 55.41 kB / 445.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.557e-05/0.1035, allocations: 147.6 kB / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.747e-06/0.1035, allocations: 25.7 kB / 445.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.878e-05/0.1035, allocations: 84.14 kB / 445.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.276e-05/0.1035, allocations: 8 kB / 445.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-06/0.1036, allocations: 0 / 445.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.1036, allocations: 322.8 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.806e-05/0.1036, allocations: 11.94 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.837e-05/0.1037, allocations: 58.86 kB / 445.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.837e-05/0.1038, allocations: 74.75 kB / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1038, allocations: 0 / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001062/0.1039, allocations: 97.39 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1039, allocations: 11.94 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1039, allocations: 0 / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.1039, allocations: 4 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.879e-05/0.104, allocations: 19.98 kB / 446 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.104, allocations: 7.938 kB / 446 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.136e-05/0.1041, allocations: 7.875 kB / 446 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1041, allocations: 4.25 kB / 446 MB, free: 12.81 MB / 298.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 7.878e-05/0.1042, allocations: 135.7 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-05/0.1042, allocations: 81.52 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.1043, allocations: 16.66 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1043, allocations: 0 / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1043, allocations: 0 / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1043, allocations: 0 / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.331e-05/0.1044, allocations: 177.5 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1044, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.904e-05/0.1044, allocations: 15.98 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.1045, allocations: 11.94 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.1045, allocations: 0 / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1045, allocations: 0 / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1045, allocations: 0 / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.913e-05/0.1046, allocations: 105 kB / 446.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.1046, allocations: 101 kB / 446.6 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.1047, allocations: 3.938 kB / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.054e-05/0.1047, allocations: 3.938 kB / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-06/0.1047, allocations: 4 kB / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.1047, allocations: 4 kB / 446.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.521e-05/0.1047, allocations: 109.9 kB / 446.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1048, allocations: 0 / 446.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000199/0.105, allocations: 12 kB / 446.7 MB, free: 11.95 MB / 298.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 7.969e-05/0.105, allocations: 95.19 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001096/0.1052, allocations: 52.17 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1052, allocations: 192 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.1052, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.1054, allocations: 47.89 kB / 446.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002485/0.1057, allocations: 217 kB / 447.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.1058, allocations: 0.7004 MB / 447.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.154e-05/0.1059, allocations: 15.44 kB / 447.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1059, allocations: 0 / 447.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of Templates: time 0.00196/0.1078, allocations: 0.8597 MB / 448.7 MB, free: 9.895 MB / 298.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/jenkins/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